1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
| [root@VM-1-14-centos ~] NETWORK ID NAME DRIVER SCOPE c49bd3c9074e bridge bridge local 7137f78f9152 host host local 830f9dcb1238 none null local [root@VM-1-14-centos ~] [ { "Name": "bridge", "Id": "c49bd3c9074eccb131f580ae87a0f639459d8fbfb6106ff16d95de982f955cb6", "Created": "2021-04-20T21:44:51.886039709+08:00", "Scope": "local", "Driver": "bridge", "EnableIPv6": false, "IPAM": { "Driver": "default", "Options": null, "Config": [ { "Subnet": "172.18.0.0/16", "Gateway": "172.18.0.1" } ] }, "Internal": false, "Attachable": false, "Ingress": false, "ConfigFrom": { "Network": "" }, "ConfigOnly": false, "Containers": { "16d977fe6d16ffd3e7e813e2487a55c9d52319a2c94c967fe3eed85f26078fd8": { "Name": "tomcat03", "EndpointID": "5a5630f2d5c897c1d9c36c9fef6df14885c381bdd5bd3bb38c1936335b65ccef", "MacAddress": "02:42:ac:12:00:04", "IPv4Address": "172.18.0.4/16", "IPv6Address": "" }, "35806ff980cd8d16855934bceaacc02a6b99d50efeb9c9ff078ae43027c1ffbc": { "Name": "tomcat01", "EndpointID": "fda00eb71c90561f15bdfd6c535411e7d38830c82315c747ac806b6369dcd623", "MacAddress": "02:42:ac:12:00:02", "IPv4Address": "172.18.0.2/16", "IPv6Address": "" }, "bb207d673d6b6a3b0898494d23850d87d852263b8c612b9788533fd3978bcdff": { "Name": "tomcat02", "EndpointID": "33d04884bfec102e7b8d1ac0985a60636c2766c4e4aebcc68bc8d766ec13c037", "MacAddress": "02:42:ac:12:00:03", "IPv4Address": "172.18.0.3/16", "IPv6Address": "" } }, "Options": { "com.docker.network.bridge.default_bridge": "true", "com.docker.network.bridge.enable_icc": "true", "com.docker.network.bridge.enable_ip_masquerade": "true", "com.docker.network.bridge.host_binding_ipv4": "0.0.0.0", "com.docker.network.bridge.name": "docker0", "com.docker.network.driver.mtu": "1500" }, "Labels": {} } ]
[root@VM-1-14-centos ~] CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 16d977fe6d16 tomcat "catalina.sh run" 11 minutes ago Up 11 minutes 0.0.0.0:49158->8080/tcp, :::49158->8080/tcp tomcat03 bb207d673d6b tomcat "catalina.sh run" 16 hours ago Up 16 hours 0.0.0.0:49156->8080/tcp, :::49156->8080/tcp tomcat02 35806ff980cd tomcat "catalina.sh run" 17 hours ago Up 17 hours 0.0.0.0:49155->8080/tcp, :::49155->8080/tcp tomcat01 [root@VM-1-14-centos ~] ...... "HostConfig": { ...... "Links": [ "/tomcat02:/tomcat03/tomcat02" ], ...... } ......
[root@VM-1-14-centos ~] 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 172.18.0.3 tomcat02 bb207d673d6b 172.18.0.4 16d977fe6d16
|