CentOS 8 下安装 Docker

yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache 

wget https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
yum -y install containerd.io-1.2.6-3.3.el7.x86_64.rpm
yum -y install docker-ce --allowerasing

systemctl start docker
docker --version
docker ps

systemctl enable docker
systemctl restart docker.service

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注