/etc/yum.repo.d 中新建docker.repo

添加

[docker]
name=CentOS-$releasever - Media
baseurl=ftp://10.191.51.X/docker
gpgcheck=0
enabled=1

将其余文件移入/tmp文件夹

yum claen all

yum mackecache

yum install docker-ce.x86_64

05-28 17:52