{
    "log-driver": "json-file",
    "log-opts": {
    "max-size": "100m",
    "max-file": "3"
    },
    "max-concurrent-downloads": 10,
    "max-concurrent-uploads": 10,
    "registry-mirrors": ["https://0lfl6iaz.mirror.aliyuncs.com"],
    "insecure-registries": ["127.0.0.1"],
    "storage-driver": "overlay2",
    "storage-opts": [
    "overlay2.override_kernel_check=true"
    ]
  }

rancher上有docker的相关配置:

参考文档:https://www.cnrancher.com/docs/rancher/v2.x/cn/installation/best-practices/

 

注意:修改默认的镜像存储驱动(改成overlay2)后,原来的所有镜像都会被清空

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐