CentOS8安装Docker步骤
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
问题: package docker-ce-3:19.03.14-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
解析: CentOS8安装Docker出现 package docker-ce-3:19.03.12-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
centos8默认使用podman代替docker,所以需要containerd.io.
安装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
再安装docker
代码语言:javascript复制yum install docker-ce
或者执行前面的
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
还是报错: 问题: containerd.io >= 1.2.2-3 解决 1、要么就降低docker 的版本 2、如果不想降低docker 版本,那么就更新 containerd.io 的版本
代码语言:javascript复制yum install -y wget
wget https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
yum install -y containerd.io-1.2.6-3.3.el7.x86_64.rpm
yum install -y docker-ce docker-ce-cli
启动docker
代码语言:javascript复制systemctl start docker
systemctl enable docker
docker -v