用国内源安装docker-ce和配置阿里仓库

作者:吴业亮

博客:http://blog.csdn.net/wylfengyujiancheng

配置源

cat <<END >/etc/yum.repos.d/repo.repo
[repo]
name=repo
baseurl = https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/x86_64/stable/
enabled=1
gpgcheck=0
END

安装docker-ce

yum install docker-ce

配置国内源

# cat /etc/docker/daemon.json
{
  "registry-mirrors": ["https://***.mirror.aliyuncs.com"],
  "dns" : [ "114.114.114.114","8.8.8.8" ]
}
发布了235 篇原创文章 · 获赞 120 · 访问量 81万+

猜你喜欢

转载自blog.csdn.net/wylfengyujiancheng/article/details/99442482