docker daemon.json 配置

 

下面是本身設置的 /etc/docker/daemon.json 文件中的配置案例docker

[root@master docker]# cat daemon.json
{
"registry-mirrors": ["https://vaflkxbk.mirror.aliyuncs.com"],
"storage-driver":"devicemapper",

    "storage-opts": [

   "dm.thinpooldev=/dev/mapper/docker-thinpool",

    "dm.use_deferred_removal=true",

    "dm.use_deferred_deletion=true"

    ],
"dns":["114.114.114.114",
    "8.8.8.8"
      ],
"bridge":"bridge0"
}
相關文章
相關標籤/搜索