Kubernetes/Docker/Docs/Docker更改IP池.md
offends 7a2f41e7d6
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-08-07 18:54:39 +08:00

371 B

本文作者:丁辉

Docker更改IP池

  1. 更改配置文件

    vi /etc/docker/daemon.json
    

    内容如下

    {
      "default-address-pools" : [
            {
               "base" : "192.168.0.0/16",
               "size" : 24
            }
        ]
    }
    
  2. 重启 Docker

    systemctl restart docker