centos8已经发布很久,一时兴起想尝试一下centos8 安装完后发现安装docker一直报错,现在记录一下安装过程。
1、安装docker依赖:
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 docker-ce docker-ce-cli containerd.io
启动docker:
systemctl start docker
查看版本:
docker --version
添加到开机启动:
sudo systemctl enable docker
如果yum安装失败可以containerd.io先安装在安装另外两个
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
下载安装:
dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.12-3.1.el7.x86_64.rpm
来源:oschina
链接:https://my.oschina.net/u/4360199/blog/3229338