Docker配置文件配置镜像加速器

cat /etc/docker/daemon.json 
{
  "insecure-registries": 
  ["xxx.xxx.xx.xx:xxxx"],
  "registry-mirrors":[ "https://nyakyfun.mirror.aliyuncs.com"],
  "storage-driver": "overlay2",
  "storage-opts": [
    "overlay2.override_kernel_check=true"
  ],
  "log-opts": {
    "max-size": "50m",
    "max-file":"5"
  },
  "log-level": "debug",
  "data-root": "/xxx/xxx"
}

你可能感兴趣的