422 B
Raw Blame History

title, createTime, tags
title createTime tags
Docker修改默认网段 2025/03/27 22:20:49
Docker

修改daemon.json,加入以下配置:

{
  "default-address-pools": [
    {
      "base": "10.192.0.0/16",
      "size": 22
    }
  ]
}

还有个配置项是bip

{
  "bip": "192.168.5.1/24"
}

bip是修改 docker0 默认网桥的网段,default-address-pools则是修改所有的网络池