2015-09-28 21:57:03 -04:00
<!-- [metadata]>
+++
title = "network inspect"
description = "The network inspect command description and usage"
2015-09-30 16:11:36 -04:00
keywords = ["network, inspect, user-defined"]
2015-09-28 21:57:03 -04:00
[menu.main]
parent = "smn_cli"
+++
<![end-metadata]-->
# network inspect
2015-10-18 19:47:32 -04:00
Usage: docker network inspect [OPTIONS] NETWORK [NETWORK..]
2015-09-28 21:57:03 -04:00
Displays detailed information on a network
--help=false Print usage
2015-10-18 19:47:32 -04:00
Returns information about one or more networks. By default, this command renders all results in a JSON object. For example, if you connect two containers to a network:
2015-09-28 21:57:03 -04:00
2015-10-18 19:47:32 -04:00
```bash
2015-09-28 21:57:03 -04:00
$ sudo docker run -itd --name=container1 busybox
f2870c98fd504370fb86e59f32cd0753b1ac9b69b7d80566ffc7192a82b3ed27
$ sudo docker run -itd --name=container2 busybox
bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727
2015-10-18 19:47:32 -04:00
```
The `network inspect` command shows the containers, by id, in its results.
2015-09-28 21:57:03 -04:00
2015-10-18 19:47:32 -04:00
```bash
2015-09-28 21:57:03 -04:00
$ sudo docker network inspect bridge
2015-10-18 19:47:32 -04:00
[
{
"name": "bridge",
"id": "7fca4eb8c647e57e9d46c32714271e0c3f8bf8d17d346629e2820547b2d90039",
"driver": "bridge",
"containers": {
"bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727": {
"endpoint": "e0ac95934f803d7e36384a2029b8d1eeb56cb88727aa2e8b7edfeebaa6dfd758",
"mac_address": "02:42:ac:11:00:03",
"ipv4_address": "172.17.0.3/16",
"ipv6_address": ""
},
"f2870c98fd504370fb86e59f32cd0753b1ac9b69b7d80566ffc7192a82b3ed27": {
"endpoint": "31de280881d2a774345bbfb1594159ade4ae4024ebfb1320cb74a30225f6a8ae",
"mac_address": "02:42:ac:11:00:02",
"ipv4_address": "172.17.0.2/16",
"ipv6_address": ""
}
}
}
]
2015-09-28 21:57:03 -04:00
```
2015-10-18 19:47:32 -04:00
## Related information
* [network disconnect ](network_disconnect.md )
* [network connect ](network_connect.md )
* [network create ](network_create.md )
* [network ls ](network_ls.md )
* [network rm ](network_rm.md )
* [Understand Docker container networks ](../../userguide/networking/dockernetworks.md )