This is a creation in
Article, where the information may have evolved or changed.
1, about Docker
Docker is an open source project that was born in early 2013 and was originally an amateur project within the DotCloud company. It is based on Google's launch of the Go language implementation. The project later joined the Linux Foundation and complied with the Apache 2.0 protocol, and the project code was main
This is a creation in
Article, where the information may have evolved or changed.
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/51093850 not allowed to reprint without the Bo master.Bo main address is: Http://blog.csdn.net/freewebsys
1, about CoreOS
Docker is very fire, but it's better to run the system or install a CoreOS.After all, it is professional to do virtual operating system. There's no seven or eight
The project uses LINUX as a virtual host, and then uses vagrant, docker, and virtualbox to build php and mysql development and testing environments. How can this problem be solved? The project uses LINUX as a virtual host, and then uses vagrant, docker, and virtualbox to build php and mysql development and testing envi
Project manager wants to use Linux as a virtual host, then use Vagrant,docker,virtualbox to build php,mysql development test environment
How do you do that?
Reply content:
Project manager wants to use Linux as a virtual host, then use Vagrant,docker,virtualbox to build php,mysql development test environment
How
! In some simple scenarios, the two products have repeated functions, but in more scenarios, they cannot replace each other. In fact, vagrant is more abstract than docker, so it is inappropriate to directly use vagrant compared with docker. It seems more appropriate to compare vagrant with Boot2Docker (the smallest kernel running docker.
To support development, v
, and then configures the Docker client. Each managed host ("Machine") is a combination of a Docker host and a configured client.What is the difference between Docker Engine and Docker machine?When people say "docker," they usually refer to the
installation process is very similar to Docker Compose. Now all the three Docker Swordsmen have arrived.Before starting, we need to understand some basic concepts. The Docker commands for clusters are as follows:Docker swarm: cluster management. Sub-Commands include init, join, join-token, leave, and updatedocker node: node management. Sub-Commands include demot
installation process is very similar to Docker Compose. Now all the three Docker Swordsmen have arrived.Before starting, we need to understand some basic concepts. The Docker commands for clusters are as follows:Docker swarm: cluster management. Sub-Commands include init, join, join-token, leave, and updatedocker node: node management. Sub-Commands include demot
vagrantfile in order to configure the Docker environment, when the virtual machine is created automatically install the Docker environment (configuration config.vm.provision "shell" Options) and configure the size and network of the virtual machines as required.
My vagrantfile is configured as follows
#-*-Mode:ruby-*-# vi:set ft=ruby:vagrant.require_version ">= 1.6.0" boxes = [{: name = "
. Authorization
$ sudo chmod +x /usr/local/bin/docker-compose3. View version information
$ docker-compose --version
The published information is displayed, indicating that the installation is successful.3. Install docker-machine
Note: The use of docker-machine is based on virtualBo
that you install Docker Toolbox.
Toolbox's introduction and help: Mirrors.aliyun.com/help/docker-toolbox
Installation files directory for Windows systems: Mirrors.aliyun.com/docker-toolbox/windows
Quick Start
# Create a Linux virtual machine with a Docker environment installed Specifies that the machine name is de
of the Docker virtualization engine.
Tip 3: To simplify this process, we've designed an application called Boot2docker that you can use to install virtual machines and run Docker.
Tip 4: Although you are using the Windows Docker client, the Docker engine container is still running on the Linux host host (now v
port, and Windows does not. Because we just mapped the 49153 port of the Docker virtual machine to the container, we entered the localhost:49153 in the browser, which is obviously the Windows layer level of access.Understand that the problem has been solved, we just go into the VirtualBox, the Docker virtual machine network to do a bridge, or port mapping on the
than as part of the cluster. Create a swarm cluster
1. Create a swarm master:
$ docker-machine Create \
D-virtualbox \
--swarm--swarm-master \
--swarm-discovery= "consul://$ ( Docker-machine IP mh-keystore): 8500 "\
--engine-opt=" cluster-store=consul://$ (docker-machine IP mh-keystore) : 8500 "\
--engine-opt=" c
Create Docker Swarm
Here to summarize the official website of the document, but this section of the official website is not well written, the official website does not introduce how to create a node machine, need to find the previous documents to facilitate learning, the official website is best in the document to give relevant links, but no, this blog to add. Prerequisite 3 hosts capable of networking (Manager1, Worker1, Worker2) can be virtual mach
version is a simple diff with the previous version, effectively keeping the image file minimized. However, this also means that you always have an audit trail that records the change of the container from one version to another. Traditionally, Docker relies on AUFS to provide a write-replication storage mechanism. However, a recently added storage boot API may reduce this dependency. Initially, there are three storage drivers available: AuFS, VFS,
manager2)docker-machine ssh manager2 docker swarm join --manager --listen-addr $MANAGER2_IP:2377 $MANAGER1_IP:2377
The script used for Swarn deployment, from the network
The following is a Shell script used to create a Docker host and deploy Swarm. Of course, the number of management/work nodes can be changed at will.Note: creating two management nodes and two w
can connect to registry, everyone can easily get a mirror from the repository through the pull command. Docker uses the default repository for Docker hubs, which can be used to build Mirror connected to the Docker hub at home, which speeds up image acquisition. Daocloud
Boot2docker
A lightweight Linux virtual machine, primarily to make it possible
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.