Alibabacloud.com offers a wide variety of articles about how to build docker image, easily find your how to build docker image information here online.
teach you step-by-step to build a Docker-based MongoDB replication cluster environment
1. Installing Docker
2. Create a MongoDB image
3. Building a MongoDB cluster
This article ——-chain--Connecthttp://blog.csdn.net/pddddd/article/details/46893593
Docker is an open-source
make it easy for me to update my development environment to a new version of the software.
And Docker all support these characteristics, even more. You can almost instantly destroy and reconstruct the container, and the update environment only needs to reconstruct the image you are currently using.What is the PHP development environment
Web applications are complex, PHP development environment needs
Package a Docker image so that your friends can load and open a container and output hello and world to the specified file every second,
I. Two script codes
Dockerfile
1 FROM bash2 COPY . /usr/herui/3 WORKDIR /usr/herui/4 CMD [ "sh", "hello_world.sh" ]
Hello_world.sh
1 #!/bin/bash2 while true3 do4 echo 'hello world!' >> /usr/herui/hello_world.log5 sleep 16 done
Ii. package it into an
initial value of the server self-increment columnAuto-increment-increment: The server self-incrementing incrementREPLICATE-DO-DB: Specifying the replicated databaseREPLICATE-IGNORE-DB: Databases that are not replicatedRelay_log: From the library's trunk log, the main library log is written to the relay log, and the relay log is re-made from the libraryLog-slave-updates: Whether to write binary logs from the library, or enable if necessary to become a multi-master. Read-only can not be requiredI
A few days ago the system was reinstalled, and today there is just time to install a LNMP development environment with Docker, here is my installation note.1. Installing DockerThis will not be said, will not be able to look at my previous article "Docker Introduction and Installation."1) Start Docker# service Docker St
1, actual combat purposes
build an enterprise-private mirrored warehouse that meets push and pull mirroring from the development environment . When we use k8s to orchestrate and dispatch containers, the basic unit of the operation is mirroring, so we need to pull the mirror from the repository to the current working node. The use of a public Docker hub is perfectly suited to our needs and is very c
. Another problem occurs during the upload, because SELinux is irrelevant. (UseSetenforce 0You can also disable the Command temporarily.VI/etc/sysconfig/SELinuxChange the line insideSELinux = disabledSave the changes and restart the instance .)
8. view images in a private RepositoryHttp: // 192.3.8.187: 5000/v2/_ catalog
9. In this way, the image of the private repository is downloaded on Server 2.Docker
1. About Docker
Docker is an open-source application container engine that allows developers to package their applications and dependencies into a portable container, and then publish them to any popular Linux machine or virtualize them. Containers are completely sandbox-aware and do not have any interfaces with each other. Docker
private key certificate
Select Download to local private key certificate above, connect with Xshell (Linux) or putty (Windows)
Below we enter the topic, how in 5 minutes time to complete the Squid Agent service construction.First, use the pull command to download a mature squid image from the Docker hubDocker Pull Sameersbn/squid:latestSecond, start the containerDocker run--name squid-d--restart=alwa
in ${!runnings[@]}; Do if! (Jobs-l | grep ${pid} >/dev/null); Then # get process return value wait ${pid} return_code=$? # success or failure if [${return_code}-ne 0]; Then errors= (${errors[@]} ${runnings[${pid}]}) Else builts= (${buil ts[@]} ${runnings[${pid}]}) fi unset runnings[${pid}] fi done fi # Add a new compilation task, pick an image from All_images for image_name in ${!all_images[@]}; Do # is there any worker available if [$
After using the Docker login command, you can push the image to the Dockerhub using the push command, but dockerhub on the public web, the free account has only one private repository free, All that remains is to be made public. Due to various restrictions, the creation of enterprise private warehouses has a variety of application scenarios. This article will briefly describe how to
How to build a private docker repository using CentOSPreface
Because most of the image download websites are abroad, Chinese users often encounter slow downloading speeds when downloading images. In addition, when Docker is applied to the production environment, whether the downloaded
How to Use docker to quickly build a MySQL master-slave replication environment, dockermysql
When learning MySQL, we often test the functions of various parameters. At this time, you need to quickly build a MySQL instance, or even Master/Slave.
Consider the following scenarios:
For example, I want to test the impact of mysqldump ON THE myisam table when the -- s
Project background:While we are using Docker to bring us convenience, sometimes we need to build a docker cluster, this time, the following content is very valuable.Lab Environment:VMware Workstation 11Under the centos7.0 systemServer: ip:192.168.0.60SECURECRT (SSH remote connection software)Software Introduction:Here are two things I know about Docker.http://939
Tags: doc font exec configuration settings source client dump MY.CNFIn the process of learning MySQL, the role of various parameters is often tested. At this point, you need to quickly build MySQL instances, even master-slave. Consider the following scenario: For example, I want to test the effect of mysqldump on the MyISAM table in the case of specifying the--single-transaction parameter. Originally wanted to do in the ready-made test environment, b
Long time did not write the blog to do what? Review Nginx Zabbix docker-compos mariadb Learn Jenkins ansible ELK k8s (kubeadm) OK also should calm down to tidy up! Okay, I'm not talking about the demo .See the public number one recently: a single nginx image tailored for multiple php-fpm containersI just wanted to get a php-fpm image to set up a lnmp, but I was
partition to the/var/lib/docker, and set the boot auto mount.
Mount/dev/vg_home/lv_docker/var/lib/docker
vim/etc/fstab
---
/dev/vg_home/lv_docker/docker_data ext4 defaults 0 0
----
F. Detect if Docker is available and data is complete
Docker images
G. Uninstall the temporary mount point after confirming th
One, the solution of the pain point
1, to avoid building back-end development environment.
2, the development of environmental changes only need to change the mirror can be synchronized updates.
3, do not need to eclipse and other IDE tools.
4. Switch development projects
Second, the solution to the idea
Using Docker to start Ubuntu mirroring, build the development environment that the project needs i
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.