linux centos8安裝docker

hwmhehe發表於2020-10-31

安裝docker源

> curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo

> yum install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.10-3.2.el7.x86_64.rpm

因為用的是centos7裡的containerrd,先要刪掉系統中有衝突的包

yum remove podman-manpages

安裝docker

yum install docker-ce

啟動

> systemctl start docker

docker info
[root@localhost ~]# docker --version
Docker version 19.03.13, build 4484c46d9d

相關文章