centos8 docker installation

First, install dependencies

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

Second, set up a mirror

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

Third, try to one-time installation

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

 

Fourth, if the following error, then take the fifth step, first install the new version of containerd.io

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

Fifth, install the latest version containerd.io

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

This step may frequently go wrong, try more than once

 

Six, the installation again, the middle of interactive, pay attention. About 3 minutes after the installation.

sudo yum install docker-ce docker-ce-cli

 

Seven, start docker

sudo systemctl start docker

 

Eight,

 docker --version

 

Nine, boot from Kai

sudo systemctl enable docker

 

 

 

 

 

references

Published 87 original articles · won praise 14 · views 80000 +

Guess you like

Origin blog.csdn.net/epitomizelu/article/details/104305012
Recommended