1podman-port(1) General Commands Manual 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 look up 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, container names or private ports/protocols filters cannot be
25 used.
26
27
28 --latest, -l
29 Instead of providing the container name or ID, use the last created
30 container. Note: the last started container can be from other users of
31 Podman on the host machine. (This option is not available with the re‐
32 mote Podman client, including Mac and Windows (excluding WSL2) ma‐
33 chines)
34
35
37 List all port mappings
38
39
40 # podman port -a
41 b4d2f05432e482e017b1a4b2eae15fa7b4f6fb7e9f65c1bde46294fdef285906
42 80/udp -> 0.0.0.0:44327
43 80/tcp -> 0.0.0.0:44327
44 #
45
46
47
48 List port mappings for a specific container
49
50
51 # podman port b4d2f054
52 80/udp -> 0.0.0.0:44327
53 80/tcp -> 0.0.0.0:44327
54 #
55
56
57
58 List the port mappings for the latest container and port 80
59
60
61 # podman port b4d2f054 80
62 0.0.0.0:44327
63 #
64
65
66
67 List the port mappings for a specific container for port 80 and the tcp
68 protocol.
69
70
71 # podman port b4d2f054 80/tcp
72 0.0.0.0:44327
73 #
74
75
76
78 podman(1), podman-inspect(1)
79
80
82 January 2018, Originally compiled by Brent Baude bbaude@redhat.com
83 ⟨mailto:bbaude@redhat.com⟩
84
85
86
87 podman-port(1)