CentOS8安装Docker时出错

卸载旧版本:

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

1.出错: requires containerd.io >= 1.2.2-3, but none of the providers

安装containerd.io即可

yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
 

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

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

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

 

启动docker

systemctl start docker

 

查看版本

dock
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm

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

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

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

systemctl enable docker

systemctl start docker

开机自启

systemctl enable docker

 

 

 

 

3. 打开防火墙端口

yum install firewalld
systemctl start firewalld

firewall-cmd --zone=public --add-port=1024-65535/udp --permanent
firewall-cmd --zone=public --add-port=1024-65535/tcp --permanent
firewall-cmd --reload

下面是debian的
sudo ufw allow 1024:65535/tcp
sudo ufw allow 1024:65535/udp
sudo ufw enable

 

安装python3 的startup scripts

yum install vim wget zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel -y
mkdir files
cd files
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz
xz -d Python-3.6.6.tar.xz
tar xvf Python-3.6.6.tar
cd Python-3.6.6
mkdir /usr/local/python3
./configure --prefix=/usr/local/python3
make && make install
echo "PATH=/usr/local/python3/bin:$PATH" >> /etc/profile
source /etc/profile
pip3 install requests
cd ~
rm -rf files

你可能感兴趣的:(CentOS8安装Docker时出错)