美文网首页
Docker 实现阿里云加速

Docker 实现阿里云加速

作者: FantJ | 来源:发表于2018-06-03 13:57 被阅读325次

阿里云加速

[root@FantJ ~]# tee /etc/docker/daemon.json <<-'EOF'
> {
>   "registry-mirrors": ["https://wghlmi3i.mirror.aliyuncs.com"]
> }
> EOF
{
  "registry-mirrors": ["https://wghlmi3i.mirror.aliyuncs.com"]
}
[root@FantJ ~]# cat /etc/docker/daemon.json 
{
  "registry-mirrors": ["https://wghlmi3i.mirror.aliyuncs.com"]
}

其实就是添加了一个registry-mirrors的一个键值对。然后重加载该文件,重启服务

[root@FantJ ~]# systemctl daemon-reload
[root@FantJ ~]# systemctl restart docker

相关文章

网友评论

      本文标题:Docker 实现阿里云加速

      本文链接:https://www.haomeiwen.com/subject/zisjsftx.html