實際上,添加的這個yum源仍然是el7的linux
yum install -y yum-utils yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
安裝依賴包:docker
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm Install Docker Engine
安裝docker-ceshell
yum install docker-ce -y
安裝docker-ce報錯:centos
file /usr/share/man/man1/docker-volume.1.gz from install of docker-ce-cli-1:19.03.8-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
解決方法:code
yum remove podman-manpages -y
而後從新安裝docker-ce便可rem