1podman-port(1)()                                              podman-port(1)()
2
3
4

NAME

6       podman-port - List port mappings for a container
7
8

SYNOPSIS

10       podman port [options] container [private-port[/proto]]
11
12
13       podman container port [options] container [private-port[/proto]]
14
15

DESCRIPTION

17       List  port  mappings for the container or lookup the public-facing port
18       that is NAT-ed to the private-port.
19
20

OPTIONS

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       including Mac and Windows (excluding WSL2) machines)
34
35

EXAMPLE

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

SEE ALSO

78       podman(1), podman-inspect(1)
79
80

HISTORY

82       January  2018,  Originally  compiled  by  Brent Baude bbaude@redhat.com
83       ⟨mailto:bbaude@redhat.com⟩
84
85
86
87                                                              podman-port(1)()
Impressum