github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-network-inspect.1.md (about) 1 % podman-network-inspect 1 2 3 ## NAME 4 podman\-network\-inspect - Display the network configuration for one or more networks 5 6 ## SYNOPSIS 7 **podman network inspect** [*options*] *network* [*network* ...] 8 9 ## DESCRIPTION 10 Display the (JSON format) network configuration. 11 12 ## OPTIONS 13 #### **--format**, **-f**=*format* 14 15 Pretty-print networks to JSON or using a Go template. 16 17 | **Placeholder** | **Description** | 18 |--------------------|-------------------------------------------| 19 | .Containers ... | Running containers on this network. | 20 | .Created ... | Timestamp when the network was created | 21 | .DNSEnabled | Network has dns enabled (boolean) | 22 | .Driver | Network driver | 23 | .ID | Network ID | 24 | .Internal | Network is internal (boolean) | 25 | .IPAMOptions ... | Network ipam options | 26 | .IPv6Enabled | Network has ipv6 subnet (boolean) | 27 | .Labels ... | Network labels | 28 | .Name | Network name | 29 | .Network ... | Nested Network type | 30 | .NetworkDNSServers | Array of DNS servers used in this network | 31 | .NetworkInterface | Name of the network interface on the host | 32 | .Options ... | Network options | 33 | .Routes | List of static routes for this network | 34 | .Subnets | List of subnets on this network | 35 36 ## EXAMPLE 37 38 Inspect the default podman network. 39 40 ``` 41 $ podman network inspect podman 42 [ 43 { 44 "name": "podman", 45 "id": "2f259bab93aaaaa2542ba43ef33eb990d0999ee1b9924b557b7be53c0b7a1bb9", 46 "driver": "bridge", 47 "network_interface": "podman0", 48 "created": "2021-06-03T12:04:33.088567413+02:00", 49 "subnets": [ 50 { 51 "subnet": "10.88.0.0/16", 52 "gateway": "10.88.0.1" 53 } 54 ], 55 "ipv6_enabled": false, 56 "internal": false, 57 "dns_enabled": false, 58 "ipam_options": { 59 "driver": "host-local" 60 } 61 } 62 ] 63 ``` 64 65 Show the subnet and gateway for a network. 66 67 ``` 68 $ podman network inspect podman --format "{{range .Subnets}}Subnet: {{.Subnet}} Gateway: {{.Gateway}}{{end}}" 69 Subnet: 10.88.0.0/16 Gateway: 10.88.0.1 70 ``` 71 72 ## SEE ALSO 73 **[podman(1)](podman.1.md)**, **[podman-network(1)](podman-network.1.md)**, **[podman-network-ls(1)](podman-network-ls.1.md)**, **[podman-network-create(1)](podman-network-create.1.md)** 74 75 ## HISTORY 76 August 2021, Updated with the new network format by Paul Holzinger <pholzing@redhat.com> 77 78 August 2019, Originally compiled by Brent Baude <bbaude@redhat.com>