What is 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 maintained on GitHub.
The goal of the Docker project is to implement a lightweight operating system virtualization solution. Docker is based on technologies such as Linux containers (LXC). On the basis of LXC, Docker has been further encapsulated, so that users do not need to care about the management of containers, making the operation easier. User-operated Docker containers are as simple as operating a fast, lightweight virtual machine.
The image below compares the differences between Docker and traditional virtualization, where the container is virtualized at the operating system level, directly reusing the local host's operating system, while the traditional approach is implemented at the hardware level.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7C/69/wKiom1bP7Inj3qZoAAaCUtORmh4275.png "title=" 1.PNG " alt= "Wkiom1bp7inj3qzoaaacutormh4275.png"/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7C/68/wKioL1bP7RfzGpPyAAbjgSnnkWc344.png "title=" 2.PNG " alt= "Wkiol1bp7rfzgppyaabjgsnnkwc344.png"/>
Docker vs. traditional virtual machines:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7C/68/wKioL1bP7S6gkPKKAABULqaxE2E274.png "title=" 3.PNG " alt= "Wkiol1bp7s6gkpkkaabulqaxe2e274.png"/>
Benefits of using Docker:
1: Rapid deployment. Docker can customize a set of mirrors according to a standard, such as Resin,zookeeper, which contains all the environments that run the required services. For example, when you need to create a new resin service, you can use a custom resin image to open a container without having to deploy the underlying environment. All we have to do is simply modify the configuration file or deploy the code. The start time of the container is second-level, which can save a lot of time for development, testing and deployment.
2: Test and develop the consistency of the application environment. If the same service container is opened by the same mirror, then the application environment is identical. Avoiding development testing varies depending on the environment, resulting in test development results.
3: Resource integration. More traditional virtual machines can deploy more applications and are faster.
4: Application isolation. When you need to run multiple applications on a single machine, you can use Docker to isolate the application and reduce the interaction between applications. such as port conflicts, and so on.
Docker Basic Concepts:
1: Image: Mirroring is a read-only system template that mirrors can use to create containers.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7C/69/wKiom1bP7Nmw_3UOAAAkahxf6hQ340.png "title=" 4.PNG " alt= "Wkiom1bp7nmw_3uoaaakahxf6hq340.png"/>
2: Container (Container): Container is a running example created from a mirror that can be started, started, stopped, deleted. The containers are isolated from each other. You can think of a container as a simple version of the Linux environment.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7C/68/wKioL1bP7VmDbbeyAAAZPo2ioFo665.png "title=" 5.PNG " alt= "Wkiol1bp7vmdbbeyaaazpo2iofo665.png"/>
3: Warehouse (Repository): The place where the mirror is stored. Includes a shared warehouse and a private warehouse.
This article is from "The Clown who plays God" blog, please make sure to keep this source http://icenycmh.blog.51cto.com/4077647/1745276
The basic concept of Docker