容器的網路設定
$ docker network ls
NETWORK ID NAME DRIVER SCOPE
56e6b7438155 bridge bridge local
98a402d07220 host host local
9511eb2b9ea0 none null localBridge Network
root@vm:/home/jennifer# ifconfig docker0
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
inet6 fe80::42:34ff:fe9a:e7d1 prefixlen 64 scopeid 0x20<link>
ether 02:42:34:9a:e7:d1 txqueuelen 0 (Ethernet)
RX packets 2671008 bytes 258331993 (258.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2701399 bytes 289253518 (289.2 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Host Network
None Network
Bridge Network與Host Network解釋

Last updated