2020-11-20 centos8安装docker

给新买centos8版本的百度云服务器安装docker。

  1. 下载docker-ce的repo
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
  1. 安装依赖(这是相比centos7的关键步骤)
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
  1. 安装docker-ce
yum install docker-ce
  1. 启动docker
systemctl start docker

你可能感兴趣的:(2020-11-20 centos8安装docker)