其他分享
首页 > 其他分享> > /etc/docker/daemon.json

/etc/docker/daemon.json

作者:互联网

/etc/docker/daemon.json

{
  "graph": "/data/docker",
  "storage-driver": "overlay2",
  "insecure-registries": ["registry.access.redhat.com","quay.io","harbor.od.com"],
  "registry-mirrors": ["https://q2gr04ke.mirror.aliyuncs.com"],
  "bip": "172.7.22.1/24",
  "exec-opts": ["native.cgroupdriver=systemd"],
  "live-restore": true
}

上文解释

{
  "graph": "/data/docker",        //docker的工作目录。会自动生成一些文件夹
  "storage-driver": "overlay2",       //存储驱动。使用overlay2
  "insecure-registries": ["registry.access.r示例edhat.com","quay示例.io"],        //不安全的registries。自己的私有仓库也填在里边
  "registry-mirrors": ["https://q2gr04ke.mirror.aliyuncs.com"],     //镜像加速源。这里是阿里的
  "bip": "172.7.22.1/24",       //docker的网络地址
  "exec-opts": ["native.cgroupdriver=systemd"],
  "live-restore": true
}

标签:示例,etc,json,registry,docker,com,overlay2,registries
来源: https://blog.csdn.net/Flag2920/article/details/114377815