Files
Kubernetes/Docker/Docs/Docker使用文档/Docker更改IP池.md
offends 8a87b699ba
All checks were successful
continuous-integration/drone Build is passing
first commit
2025-12-13 18:06:23 +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