在添加阿里云镜像后安装依旧慢:
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
提示:
docker Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror.
解决方法:调整docker-ce-stable的baseurl,保存退出重新安装,速度上M
vi /etc/yum.repos.d/docker-ce.repo
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/$releasever/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg