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
13       podman container port [options] container [private-port[/proto]]
14
15

DESCRIPTION

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

OPTIONS

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

EXAMPLE

37       List all port mappings
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       # podman port b4d2f054
50       80/udp -> 0.0.0.0:44327
51       80/tcp -> 0.0.0.0:44327
52       #
53
54
55
56       List the port mappings for the latest container and port 80
57
58       # podman port b4d2f054 80
59        0.0.0.0:44327
60       #
61
62
63
64       List the port mappings for a specific container for port 80 and the tcp
65       protocol.
66
67       # podman port b4d2f054 80/tcp
68       0.0.0.0:44327
69       #
70
71
72

SEE ALSO

74       podman(1), podman-inspect(1)
75
76

HISTORY

78       January  2018,  Originally  compiled  by  Brent Baude bbaude@redhat.com
79       ⟨mailto:bbaude@redhat.com⟩
80
81
82
83                                                                podman-port(1)
Impressum