1podman-network-inspect(1)   General Commands Manual  podman-network-inspect(1)
2
3
4

NAME

6       podman-network-inspect  -  Display the network configuration for one or
7       more networks
8
9

SYNOPSIS

11       podman network inspect [options] network [network ...]
12
13

DESCRIPTION

15       Display the (JSON format) network configuration.
16
17

OPTIONS

19   --format, -f=format
20       Pretty-print networks to JSON or using a Go template.
21
22
23       ┌───────────────────┬───────────────────────────────┐
24Placeholder        Description                   
25       ├───────────────────┼───────────────────────────────┤
26.Created           │ Timestamp  when  the  network │
27       │                   │ was created                   │
28       ├───────────────────┼───────────────────────────────┤
29.DNSEnabled        │ Network   has   dns   enabled │
30       │                   │ (boolean)                     │
31       ├───────────────────┼───────────────────────────────┤
32.Driver            Network driver                
33       ├───────────────────┼───────────────────────────────┤
34.ID                Network ID                    
35       ├───────────────────┼───────────────────────────────┤
36.Internal          Network is internal (boolean) 
37       ├───────────────────┼───────────────────────────────┤
38.IPAMOptions       Network ipam options          
39       ├───────────────────┼───────────────────────────────┤
40.IPv6Enabled       │ Network   has   ipv6   subnet │
41       │                   │ (boolean)                     │
42       ├───────────────────┼───────────────────────────────┤
43.Labels            Network labels                
44       ├───────────────────┼───────────────────────────────┤
45.Name              Network name                  
46       ├───────────────────┼───────────────────────────────┤
47.NetworkDNSServers │ Array  of DNS servers used in │
48       │                   │ this network                  │
49       ├───────────────────┼───────────────────────────────┤
50.NetworkInterface  │ Name of the network interface │
51       │                   │ on the host                   │
52       ├───────────────────┼───────────────────────────────┤
53.Options           Network options               
54       ├───────────────────┼───────────────────────────────┤
55.Routes            │ List  of  static  routes  for │
56       │                   │ this network                  │
57       ├───────────────────┼───────────────────────────────┤
58.Subnets           │ List of subnets on this  net‐ │
59       │                   │ work                          │
60       └───────────────────┴───────────────────────────────┘
61

EXAMPLE

63       Inspect the default podman network.
64
65       $ podman network inspect podman
66       [
67           {
68               "name": "podman",
69               "id": "2f259bab93aaaaa2542ba43ef33eb990d0999ee1b9924b557b7be53c0b7a1bb9",
70               "driver": "bridge",
71               "network_interface": "podman0",
72               "created": "2021-06-03T12:04:33.088567413+02:00",
73               "subnets": [
74                   {
75                       "subnet": "10.88.0.0/16",
76                       "gateway": "10.88.0.1"
77                   }
78               ],
79               "ipv6_enabled": false,
80               "internal": false,
81               "dns_enabled": false,
82               "ipam_options": {
83                   "driver": "host-local"
84               }
85           }
86       ]
87
88
89
90       Show the subnet and gateway for a network.
91
92       $ podman network inspect podman --format "{{range .Subnets}}Subnet: {{.Subnet}} Gateway: {{.Gateway}}{{end}}"
93       Subnet: 10.88.0.0/16 Gateway: 10.88.0.1
94
95
96

SEE ALSO

98       podman(1), podman-network(1), podman-network-ls(1), podman-network-cre‐
99       ate(1)
100
101

HISTORY

103       August 2021, Updated with the new  network  format  by  Paul  Holzinger
104       pholzing@redhat.com ⟨mailto:pholzing@redhat.com⟩
105
106
107       August  2019,  Originally  compiled  by  Brent  Baude bbaude@redhat.com
108       ⟨mailto:bbaude@redhat.com⟩
109
110
111
112                                                     podman-network-inspect(1)
Impressum