centos8 安装docker

首先更新一下:yum -y update

centos8默认使用podman代替docker,所以需要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

安装docker
yum install -y docker-ce

启动docker
systemctl start docker

posted @ 2021-07-01 11:03  爱你爱自己  阅读(6987)  评论(0编辑  收藏  举报