Centos7 install docker18

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 # For example: sudo yum install docker-ce-17.12.0.ce

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

CentOS 7 install Docker
CentOS7 install Docker
Centos7 install Docker
Centos7 install docker18
centos7 install docker
CentOS 6 install Docker
Centos8 install Docker
Install Docker on Centos7
CentOS 7 install Docker service
CentOS 8-dnf install docker
install Docker on centos6.5
CentOS 7 install Docker CE
1.5 Install Centos7
Install docker transfer on Centos7
Install docker on Centos system
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS7 install GlusterFS
ubuntu18.04 install docker
CentOS 7.4 install Zabbix 3.4
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Install MySql with Docker in CentOS7
Centos7 install Python2.7
Centos 7.6 install seleniu
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
Docker installation (CentOS7 installation)
CentOS install openjdk 1.8
CentOS install PHP
Container study notes CentOS7 install Docker
CentOS6 install mist.io
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Install and use docker under CentOS 6.8
docker install ubuntu
Centos7 install Nginx
CentOS6.5 install CDH5.13
Install Centos7 operating system in Docker
Centos install Python3
CentOS install jdk
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS7 install mysql8
CentOS7 docker installation
CentOS 7 install Java 1.8
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL
CentOS7 install MySQL8