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 List all known port mappings for running containers. When using this
24 option, you cannot pass any container names or private ports/protocols
25 as filters.
26
27
28 --latest, -l
29 Instead of providing the container name or ID, use the last created
30 container. If you use methods other than Podman to run containers such
31 as CRI-O, the last started container could be from either of those
32 methods. (This option is not available with the remote Podman client)
33
34
36 List all port mappings
37
38
39 # podman port -a
40 b4d2f05432e482e017b1a4b2eae15fa7b4f6fb7e9f65c1bde46294fdef285906
41 80/udp -> 0.0.0.0:44327
42 80/tcp -> 0.0.0.0:44327
43 #
44
45
46
47 List port mappings for a specific container
48
49
50 # podman port b4d2f054
51 80/udp -> 0.0.0.0:44327
52 80/tcp -> 0.0.0.0:44327
53 #
54
55
56
57 List the port mappings for the latest container and port 80
58
59
60 # podman port b4d2f054 80
61 0.0.0.0:44327
62 #
63
64
65
66 List the port mappings for a specific container for port 80 and the tcp
67 protocol.
68
69
70 # podman port b4d2f054 80/tcp
71 0.0.0.0:44327
72 #
73
74
75
77 podman(1), podman-inspect(1)
78
79
81 January 2018, Originally compiled by Brent Baude bbaude@redhat.com
82 ⟨mailto:bbaude@redhat.com⟩
83
84
85
86 podman-port(1)()