1podman-port(1)() podman-port(1)()
2
3
4
6 podman-port - List port mappings for a container
7
8
10 podman port [options] container [private-port[/proto]]
11
12
13 podman container port [options] container [private-port[/proto]]
14
15
17 List port mappings for the container or lookup the public-facing port
18 that is NAT-ed to the private-port.
19
20
22 --all, -a
23
24
25 List all known port mappings for running containers. When using this
26 option, you cannot pass any container names or private ports/protocols
27 as filters.
28
29
30 --latest, -l
31
32
33 Instead of providing the container name or ID, use the last created
34 container. If you use methods other than Podman to run containers such
35 as CRI-O, the last started container could be from either of those
36 methods.
37
38
39 The latest option is not supported on the remote client.
40
41
43 List all port mappings
44
45
46 # podman port -a
47 b4d2f05432e482e017b1a4b2eae15fa7b4f6fb7e9f65c1bde46294fdef285906
48 80/udp -> 0.0.0.0:44327
49 80/tcp -> 0.0.0.0:44327
50 #
51
52
53
54 List port mappings for a specific container
55
56
57 # podman port b4d2f054
58 80/udp -> 0.0.0.0:44327
59 80/tcp -> 0.0.0.0:44327
60 #
61
62
63
64 List the port mappings for the latest container and port 80
65
66
67 # podman port b4d2f054 80
68 0.0.0.0:44327
69 #
70
71
72
73 List the port mappings for a specific container for port 80 and the tcp
74 protocol.
75
76
77 # podman port b4d2f054 80/tcp
78 0.0.0.0:44327
79 #
80
81
82
84 podman(1), podman-inspect(1)
85
86
88 January 2018, Originally compiled by Brent Baude bbaude@redhat.com
89 ⟨mailto:bbaude@redhat.com⟩
90
91
92
93 podman-port(1)()