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.
33
34
35       The latest option is not supported on the remote client.
36
37

EXAMPLE

39       List all port mappings
40
41
42              # podman port -a
43              b4d2f05432e482e017b1a4b2eae15fa7b4f6fb7e9f65c1bde46294fdef285906
44              80/udp -> 0.0.0.0:44327
45              80/tcp -> 0.0.0.0:44327
46              #
47
48
49
50       List port mappings for a specific container
51
52
53              # podman port b4d2f054
54              80/udp -> 0.0.0.0:44327
55              80/tcp -> 0.0.0.0:44327
56              #
57
58
59
60       List the port mappings for the latest container and port 80
61
62
63              # podman port b4d2f054 80
64               0.0.0.0:44327
65              #
66
67
68
69       List the port mappings for a specific container for port 80 and the tcp
70       protocol.
71
72
73              # podman port b4d2f054 80/tcp
74              0.0.0.0:44327
75              #
76
77
78

SEE ALSO

80       podman(1), podman-inspect(1)
81
82

HISTORY

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