+-
docker无法识别default-address-pools
我正在尝试配置docker-compose默认使用不同的网络范围,所以我按照 https://github.com/moby/moby/pull/29376的说明进行操作

但是,我收到以下错误:

unable to configure the Docker doker daemon with file
/etc/docker/daemon.json: the following directives don’t match any
configuration option: default-address-pools

这是daemon.json的内容 – 它是取自#29376的样本.

{
  "default-address-pools": [
    {
      "scope": "local",
      "base": "172.80.0.0/16",
      "size": 24
    },
    {
      "scope": "global",
      "base": "172.90.0.0/16",
      "size": 24
    }
  ]
}

请指教.

我的环境:

# uname -a
Linux gfn-classroom 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 
2018 x86_64 x86_64 x86_64 GNU/Linux

# docker --version
Docker version 17.12.0-ce, build c97c6d6

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:        16.04
Codename:       xenial
最佳答案
Pull-request https://github.com/moby/moby/pull/29376已关闭,未合并,因此Docker中尚未提供该功能
点击查看更多相关文章

转载注明原文:docker无法识别default-address-pools - 乐贴网