Docker adopts the timeline method as the version number since version 1.13, divided into community version CE and enterprise version EE.
The community version is free for individual developers and small groups to use, and the enterprise version will provide additional paid services, such as infrastructure, containers, and plug-ins that have been officially tested and certified.
The community version is released in two ways: stable and edge. The stable version is updated quarterly, such as 17.06, 17.09; the edge version is updated every month, such as 17.09, 17.10.
1、 Docker requires the kernel version of the CentOS system to be higher than 3.10. Check the prerequisites on this page to verify whether your CentOS version supports Docker. View your current kernel version through the uname -r command
2、 Log in to Centos with root privileges. Ensure that the yum package is updated to the latest.
yum update
3、 Uninstall the old version (if the old version is installed)
yum remove docker docker-common docker-selinux docker-engine
If you have installed an old version of docker before
Uninstall the old version of the package
yum erase docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64
4、 Install the required software packages, yum-util provides yum-config-manager function, and the other two are dependent on the devicemapper driver
yum install -y yum-utils device-mapper-persistent-data lvm2
5、 Set yum source
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
6、 You can view all docker versions in all warehouses and select a specific version to install
yum list docker-ce --showduplicates | sort -r
7、 Install docker
yum install docker-ce #Because only the stable warehouse is opened by default in the repo, the latest stable version 17.12.0 is installed here
yum install
8、 Start and add startup
systemctl start docker
systemctl enable docker
9、 Verify that the installation is successful (there are two parts, client and service, indicating that the docker installation and startup are successful)
docker version
Recommended Posts