Centos8 install Docker

Delete the old version. In order to ensure uniformity, it is recommended that everyone implement it. If yum reports that these packages are not installed, you can go to the next step.

  yum remove docker \
     docker-client \
     docker-client-latest \
     docker-common \
     docker-latest \
     docker-latest-logrotate \
     docker-logrotate \
     docker-engine

Install the yum-utils package (provides the yum-config-manager utility) and set up a stable repository.

yum install -y yum-utils

yum-config-manager  --add-repo   https://download.docker.com/linux/centos/docker-ce.repo

Install the latest version of the Docker Engine and container, Centos8 skip look below

yum install docker-ce docker-ce-cli containerd.io

I’m from Centos 8.1 and I’m reporting an error here

Problem:package docker-ce-3:19.03.4-3.el7.x86_64 requires containerd.io >=1.2.2-3

So I need to install the new version of containerd.io first

dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm

yum install docker-ce docker-ce-cli

Start docker

systemctl start docker

View version

docker --version

Self-start

systemctl enable docker

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
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
Centos6.5 install Tomcat
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
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
CentOS install mysql
Docker installation (CentOS7 installation)
CENTOS6.5 install CDH5.12.1 (1)
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
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL
CentOS7 install MySQL8
CentOS 7 install Java 1.8
centos 6.5 install zabbix 4.4
CentOS6.8 install python2.7
CentOS install nodejs 8