1podman-port(1)              General Commands Manual             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

DESCRIPTION

14       List port mappings for the container or lookup the public-facing port
15       that is NAT-ed to the private-port.
16
17

OPTIONS

19       --all, -a
20
21
22       List all known port mappings for running containers.  When using this
23       option, you cannot pass any container names or private ports/protocols
24       as filters.
25
26
27       --latest, -l
28
29
30       Instead of providing the container name or ID, use the last created
31       container. If you use methods other than Podman to run containers such
32       as CRI-O, the last started container could be from either of those
33       methods.
34
35
36       The latest option is not supported on the remote client.
37
38

EXAMPLE

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

SEE ALSO

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

HISTORY

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