Install docker on Centos system

The main steps##

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

$ uname -r

2、 Log in to Centos with root privileges. Ensure that the yum package is updated to the latest.

$ sudo yum update

3、 Uninstall the old version (if the old version is installed)

$ sudo yum remove docker  docker-common docker-selinux docker-engine

4、 Install the required software packages, yum-util provides yum-config-manager function, and the other two are dependent on the devicemapper driver

$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2

5、 Set yum source

$ sudo 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

$ sudo yum install docker-ce  #Since only the stable warehouse is opened by default in the repo, the latest stable version 18 is installed here.06.3
$ sudo yum install <FQPN>  #For example: sudo yum install docker-ce-18.06.3.ce

8、 Start and add startup

$ sudo systemctl start docker
$ sudo 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

references#

Recommended Posts

Install docker on Centos system
Install Docker on Centos7
install Docker on centos6.5
CentOS 7 install Docker
CentOS7 install Docker
Centos7 install Docker
Centos7 install docker18
centos7 install docker
CentOS 6 install Docker
Centos8 install Docker
Install Centos7 operating system in Docker
install LNMP on centos7.4
Install Java on Centos 7
Install docker on Ubuntu
CentOS 7 install Docker service
Nodejs install on centos7
Install Docker on ubuntu18.04
VirtualBox install CentOS system
Install MongoDB on CentOS 7
Install Surelog on CentOS8
CentOS 8-dnf install docker
Openjdk install on centos7
Install Jenkins on centos7
install RabbitMQ on centos
Install RabbitMQ on CentOS 7
Install Docker on Ubuntu18
install oracle on centos
Install Elasticsearch 6 on centos7
Install RabbitMQ on CentOS7
CentOS 7 install Docker CE
How to install and use Docker on CentOS 7
How to install Docker CE on RHEL 8 / CentOS 8
Install ElasticSearch 7.x on CentOS 7
install EPEL repo on centos
Install Zabbix 3.4 based on CentOS 7
install virtualbox on centos server
Install Docker on Ubuntu 18.04 offline
Docker EE installation on centos7
Install Nginx server on CentOS 7
How to quickly install docker on Linux (Centos version)
1.5 Install Centos7
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
Install JDK8 in rpm on CentOS7
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to install TeamViewer on CentOS 8
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
Install MySql with Docker in CentOS7
How to install Jenkins on CentOS 8
How to install Go on CentOS 8
How to install GCC on CentOS 8
Docker ubuntu: install python-PIL-image environment on 14.04
How to install Yarn on CentOS 8
How to install Nginx on CentOS 8
How to install Asterisk on CentOS 7
How to install Jenkins on CentOS 8
Install MySQL on Linux CentOS7 (Windows)