centos安装最新版docker!!!

1、先卸载服务器上的docker服务:

yum remove docker docker-common container-selinux docker-selinux docker-engine

2、安装docker-ce:

安装 yum-utils,它提供了 yum-config-manager,可用来管理yum源:
yum install -y yum-utils

添加yum源:
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

更新yum索引:
yum makecache fast

安装docker-ce:
yum install docker-ce

3、启动docker服务:

systemctl start docker

猜你喜欢

转载自blog.csdn.net/weixin_42207486/article/details/82869876