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

SEE ALSO

100       podman(1), podman-network(1), podman-network-ls(1), podman-network-cre‐
101       ate(1)
102
103

HISTORY

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