最後更新時間:2018年12月26日使用命令:docker network rm docker_gwbridge 提示無法刪除。[root@localhost ~]# docker network rm docker_gwbridgeError response from daemon: netwo... ...
最後更新時間:2018年12月26日
使用命令:docker network rm docker_gwbridge 提示無法刪除。
[root@localhost ~]# docker network rm docker_gwbridge
Error response from daemon: network docker_gwbridge has active endpoints
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 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
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:0c:29:e9:a5:c2 brd ff:ff:ff:ff:ff:ff
inet 192.168.6.156/24 brd 192.168.6.255 scope global ens192
valid_lft forever preferred_lft forever
inet6 fe80::d7e3:4c22:4ba:950d/64 scope link
valid_lft forever preferred_lft forever
inet6 fe80::6187:a9b7:eee4:48a8/64 scope link tentative dadfailed
valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether 02:42:41:d6:77:41 brd ff:ff:ff:ff:ff:ff
inet 172.101.19.1/24 scope global docker0
valid_lft forever preferred_lft forever
inet6 fe80::42:41ff:fed6:7741/64 scope link
valid_lft forever preferred_lft forever
4: flannel0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1472 qdisc pfifo_fast state UNKNOWN qlen 500
link/none
inet 172.101.19.0/16 scope global flannel0
valid_lft forever preferred_lft forever
inet6 fe80::1e61:e93a:55f0:6d32/64 scope link flags 800
valid_lft forever preferred_lft forever
35: docker_gwbridge: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether 02:42:a6:ed:fd:ae brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 scope global docker_gwbridge
valid_lft forever preferred_lft forever
inet6 fe80::42:a6ff:feed:fdae/64 scope link
valid_lft forever preferred_lft forever
使用以下命令刪除:
docker swarm leave
docker network rm docker_gwbridge
service docker restart
參考
https://success.docker.com/article/how-do-i-change-the-docker-gwbridge-address