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 11
Under the centos7.0 system
Server: ip:192.168.0.60
SECURECRT (SSH remote connection software)
Software Introduction:
Here are two things I know about Docker.
http://9399369.blog.51cto.com/9389369/1758576 "Docker Concise Tutorial One"
http://9399369.blog.51cto.com/9389369/1758752 "Docker Brief Tutorial II"
Experimental process:
First, Docker software installation
1, first see if the host has been installed Docker
[Email protected] ~]# Rpm-q Docker
Docker-1.8.2-10.el7.centos.x86_64
You can see I've installed Docker
2. If you do not have Docker installed, perform the following command installation.
[email protected] ~]# Yum install-y Docker
Ii. using a custom bridge to connect across host containers
1. View your host's Docker bridge
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/8C/wKiom1cDtznhy5AAAAEOXSEnQ_k745.png "title=" 01.png "alt=" Wkiom1cdtznhy5aaaaeoxsenq_k745.png "/>2, download an Ubuntu image.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/89/wKioL1cDuy_x6KjZAAByCU2P-FQ231.png "title=" 02.png "alt=" Wkiol1cduy_x6kjzaabycu2p-fq231.png "/> View the image information of this machine
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7E/89/wKioL1cDuySyQJ-jAADME1Zwk3w280.png "title=" 03.png "alt=" Wkiol1cduysyqj-jaadme1zwk3w280.png "/>
3, new and start the container, look at the container network information
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7E/89/wKioL1cDvH-yVtgRAAJChvP8j8A585.png "title=" 04.png "alt=" Wkiol1cdvh-yvtgraajchvp8j8a585.png "/>
4. Create your own network bridge.
This article is from the "Make a few" blog, be sure to keep this source http://9399369.blog.51cto.com/9389369/1760656
Docker container cluster Build!!!