github.com/netbrain/docker@v1.9.0-rc2/docs/reference/commandline/network_inspect.md (about) 1 <!--[metadata]> 2 +++ 3 title = "network inspect" 4 description = "The network inspect command description and usage" 5 keywords = ["network, inspect"] 6 [menu.main] 7 parent = "smn_cli" 8 +++ 9 <![end-metadata]--> 10 11 # network inspect 12 13 Usage: docker network inspect [OPTIONS] NETWORK 14 15 Displays detailed information on a network 16 17 --help=false Print usage 18 19 Returns information about a network. By default, this command renders all results 20 in a JSON object. 21 22 Example output: 23 24 ``` 25 $ sudo docker run -itd --name=container1 busybox 26 f2870c98fd504370fb86e59f32cd0753b1ac9b69b7d80566ffc7192a82b3ed27 27 28 $ sudo docker run -itd --name=container2 busybox 29 bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727 30 31 $ sudo docker network inspect bridge 32 { 33 "name": "bridge", 34 "id": "7fca4eb8c647e57e9d46c32714271e0c3f8bf8d17d346629e2820547b2d90039", 35 "driver": "bridge", 36 "containers": { 37 "bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727": { 38 "endpoint": "e0ac95934f803d7e36384a2029b8d1eeb56cb88727aa2e8b7edfeebaa6dfd758", 39 "mac_address": "02:42:ac:11:00:03", 40 "ipv4_address": "172.17.0.3/16", 41 "ipv6_address": "" 42 }, 43 "f2870c98fd504370fb86e59f32cd0753b1ac9b69b7d80566ffc7192a82b3ed27": { 44 "endpoint": "31de280881d2a774345bbfb1594159ade4ae4024ebfb1320cb74a30225f6a8ae", 45 "mac_address": "02:42:ac:11:00:02", 46 "ipv4_address": "172.17.0.2/16", 47 "ipv6_address": "" 48 } 49 } 50 } 51 ```