Docker国内映射镜像仓库

/etc/docker 目录下创建 daemon.json文件,配置 registry-mirrors 属性


# vim /etc/docker/daemon.json

{
  "registry-mirrors": ["https://docker.m.daocloud.io", "https://dockerproxy.com", "https://docker.mirrors.ustc.edu.cn",
        "https://docker.nju.edu.cn",    "https://docker.hpcloud.cloud",
    "https://docker.m.daocloud.io",
    "https://docker.unsee.tech",
    "https://docker.1panel.live",
    "http://mirrors.ustc.edu.cn",
    "https://docker.chenby.cn",
    "http://mirror.azure.cn",
    "https://dockerpull.org",
    "https://dockerhub.icu",
    "https://hub.rat.dev"],
  "log-driver":"json-file",
  "log-opts": {"max-size":"1g", "max-file":"3"},
  "insecure-registries": ["xxx.xx.xx.xxx:5000"],
  "live-restore": true,
  "exec-opts": ["native.cgroupdriver=systemd"]
}

posted @ 2024-12-11 16:22  sowler  阅读(195)  评论(0)    收藏  举报