First, Docker introduction
Docker is a container container engine built on LXC technology based on the DOCKER.LNC company's open source, which is hosted on GitHub, open source based on the go language and compliant with the APACHE2.0 protocol.
Docker provides container resource isolation and security through kernel virtualization (namespaces, cgroups, etc.). Because Docker is isolated through virtualization at the operating system layer, Docker containers run without the additional operating system overhead of similar virtual machines (VMS) and increase resource utilization.
Second, what is Docker?
Docker is a package of Linux containers that provides an easy-to-use interface for containers. It is currently the most popular Linux container solution.
Docker will rely on the application and the program, packaged in a file. When you run this file, a virtual container is generated. The program runs in this virtual container as if it were running on a real physical machine. With Docker, you don't have to worry about environmental issues.
In general, the interface of Docker is quite simple, and users can easily create and use containers and put their own applications into containers. Containers can also be versioned, copied, shared, and modified, just like managing normal code.
Third, the use of Docker
1, provide a one-time environment. For example, local testing of others ' software, continuous integration provides unit testing and built environments.
2, provide flexible cloud services. Because Docker containers can be switched on and off, they are ideal for dynamic expansion and shrinking.
3, the establishment of micro-service architecture. With multiple containers, a single machine can run multiple services, so the micro-service architecture can be simulated natively
Iv. What does Docker change?
Product-oriented: Product delivery
Development-oriented: simplifying environment configuration
Test-oriented: Multi-version testing
For operations: Consistent environment
Architecture-oriented: Automated scaling (microservices)
Five, Docker installation
1. Add Yum Source
Wget-o/etc/yum.repos.d/docker-ce.repo https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.reposed-i ' s# Download.docker.com#mirrors.ustc.edu.cn/docker-ce#g '/etc/yum.repos.d/docker-ce.repo
2. Installing Docker
Yum Install Docker-ce-y
Linux Operations and Architecture-docker Quick Start