docker-daemon配置

{
  "features": {
    "buildkit": false
  },
  "insecure-registries": [
    "42.110.111.134:8000"
  ],
  "registry-mirrors": [
    "https://docker.mirrors.ustc.edu.cn",
    "https://hub-mirror.c.163.com",
    "https://registry.aliyuncs.com"
  ]
}

如果buildkit设置为true,会报如下错误:

failed to solve with frontend dockerfile.v0: failed to create LLB definition:

如果不设置镜像源,会报如下错误:

dialing production.cloudflare.docker.com:443 no HTTPS proxy

insecure-registries 用来设置私有镜像仓库http推送

你可能感兴趣的:(docker,docker,运维,linux)