1podman-network-inspect(1)()                        podman-network-inspect(1)()
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

15       Display the raw (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       │.ID               │ Network ID                    │
27       ├──────────────────┼───────────────────────────────┤
28       │.Name             │ Network name                  │
29       ├──────────────────┼───────────────────────────────┤
30       │.Driver           │ Network driver                │
31       ├──────────────────┼───────────────────────────────┤
32       │.Labels           │ Network labels                │
33       ├──────────────────┼───────────────────────────────┤
34       │.Options          │ Network options               │
35       ├──────────────────┼───────────────────────────────┤
36       │.IPAMOptions      │ Network ipam options          │
37       ├──────────────────┼───────────────────────────────┤
38       │.Created          │ Timestamp  when  the  network │
39       │                  │ was created                   │
40       ├──────────────────┼───────────────────────────────┤
41       │.Internal         │ Network is internal (boolean) │
42       ├──────────────────┼───────────────────────────────┤
43       │.IPv6Enabled      │ Network   has   ipv6   subnet │
44       │                  │ (boolean)                     │
45       ├──────────────────┼───────────────────────────────┤
46       │.DNSEnabled       │ Network   has   dns   enabled │
47       │                  │ (boolean)                     │
48       ├──────────────────┼───────────────────────────────┤
49       │.NetworkInterface │ Name of the network interface │
50       │                  │ on the host                   │
51       ├──────────────────┼───────────────────────────────┤
52       │.Subnets          │ List of subnets on this  net‐ │
53       │                  │ work                          │
54       └──────────────────┴───────────────────────────────┘
55

EXAMPLE

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

SEE ALSO

94       podman(1), podman-network(1), podman-network-ls(1), podman-network-cre‐
95       ate(1)
96
97

HISTORY

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