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 uses the client-server (c/s) architecture pattern to manage and create Docker containers using remote APIs. Docker containers are created with Docker images. A container's relationship to mirroring is similar to objects and classes in object-oriented programming. Website address: http://www.docker.com/
Docker installation
The system requires CentOS 7.X or higher, the kernel at least 3.10,64-bit
1. Uname–r Check kernel version
2, Vi/etc/profile Modify the proxy settings (if you need to set up the agent.) The content is as follows, * * for password, password to avoid containing the @ symbol)
Export Ftp_proxy
3. Yum Update upgrade local yum Package
4. Tee/etc/yum.repos.d/docker.repo <<-' EOF ' to add the Yum warehouse configuration (see below box for content)
[Dockerrepo]name=docker repositorybaseurl=https://yum.dockerproject.org/repo/main/centos/7/enabled=1gpgcheck= 1gpgkey=https://yum.dockerproject.org/gpgeof
5. Yum Install Docker-engine installation Docker package
6. Service Docker start start Docker service
7, MKDIR/ETC/SYSTEMD/SYSTEM/DOCKER.SERVICE.D
8, touch/etc/systemd/system/docker.service.d/http-proxy.conf If you need a proxy, add the Docker program agent (see box below)
[Service] Example [service]environment= "http_proxy=http://proxy.ip.com:80"
11, Systemctl Daemon-reload
12, Systemctl Restart Docker (11th, 12 steps. Restart Docker operation)
13. Docker Run Hello-world runs the official image Hello World file to verify if the installation was successful.
Installing Docker under Linux (CENTOS7)