CoreOS Docker国内镜像加速

新版的 Docker 使用 /etc/docker/daemon.json(Linux) 或者 %programdata%\docker\config\daemon.json(Windows) 来配置 Daemon。

请在该配置文件中加入(没有该文件的话,请先建一个):

{
  "registry-mirrors": [
    "https://dockerhub.azk8s.cn",
    "https://docker.mirrors.ustc.edu.cn",
    "https://registry.docker-cn.com"
  ]
}

然后重新启动Docker服务

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker

Docker Daemon configuration file 文档: https://docs.docker.com/engine/reference/commandline/dockerd/#/daemon-configuration-file

--config-file string                    Daemon configuration file (default "/etc/docker/daemon.json")

Docker for Windows 文档: https://docs.docker.com/docker-for-windows/#/docker-daemon

Docker - Docker加速器(国内镜像)的配置及使用:https://www.cnblogs.com/anliven/p/6218741.html


中国科学技术大学 Docker 镜像使用帮助:https://lug.ustc.edu.cn/wiki/mirrors/help/docker
阿里云官方镜像帮助文档:https://help.aliyun.com/document_detail/60750.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章