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

作者:吴业亮

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

配置源

cat </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" ]
}

你可能感兴趣的:(docker)