《Docker》- docker v19版本配置镜像加速

990 阅读1分钟
原文链接: huchengzhang.com

docker v19配置镜像加速

dameon.josn

# ~/.docker/daemon.json
{
  "experimental" : true,
  "registry-mirrors" : [
    "https://f62945bb.mirror.aliyuncs.com",
    "https://docker.mirrors.ustc.edu.cn",
    "http://f1361db2.m.daocloud.io",
    "https://registry.docker-cn.com",
    "http://hub-mirror.c.163.com"
  ],
  "debug" : true
}

docker info 验证

$ docker info

config.json

# ~/.docker/config.json:
{
  "auths" : {
    "https://index.docker.io/v1/" : {
    }
  },
  "stackOrchestrator" : "swarm",
  "experimental" : "enabled",
  "credsStore" : "desktop"
}

拉取镜像效果

参考

docker register