docker daemon.json 配置

 

下面是自己设置的 /etc/docker/daemon.json 文件中的配置案例

[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"
}

 

posted @ 2018-01-23 09:24  左丿仔  阅读(1353)  评论(0编辑  收藏  举报