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

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