Docker Docker0网桥未获得新IP

时间:2018-09-10 09:22:16

标签: docker docker-networking

我已经更新了daemon.json以更新IP /子网,以使其不再与公司网络冲突,但是docker0网桥在重启后仍然具有旧的ip范围。

{
    "bip": "192.168.5.0/24",
    "default-gateway": "10.31.99.129",
    "dns": [
        "10.31.96.21"
    ]
}


root@8f61ab846912:/src# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1
    link/ipip 0.0.0.0 brd 0.0.0.0
3: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN group default qlen 1
    link/tunnel6 :: brd ::
10: eth0@if11: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 02:42:ac:12:00:03 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.18.0.3/16 brd 172.18.255.255 scope global eth0
       valid_lft forever preferred_lft forever
root@8f61ab846912:/src#

0 个答案:

没有答案