github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-port.1.md.in (about) 1 % podman-port 1 2 3 ## NAME 4 podman\-port - List port mappings for a container 5 6 ## SYNOPSIS 7 **podman port** [*options*] *container* [*private-port*[/*proto*]] 8 9 **podman container port** [*options*] *container* [*private-port*[/*proto*]] 10 11 ## DESCRIPTION 12 List port mappings for the *container* or look up the public-facing port that is NAT-ed to the *private-port*. 13 14 ## OPTIONS 15 16 #### **--all**, **-a** 17 18 List all known port mappings for running containers; when using this option, container names or private ports/protocols filters cannot be used. 19 20 @@option latest 21 22 ## EXAMPLE 23 24 List all port mappings: 25 ``` 26 # podman port -a 27 b4d2f05432e482e017b1a4b2eae15fa7b4f6fb7e9f65c1bde46294fdef285906 28 80/udp -> 0.0.0.0:44327 29 80/tcp -> 0.0.0.0:44327 30 # 31 ``` 32 33 List port mappings for a specific container: 34 ``` 35 # podman port b4d2f054 36 80/udp -> 0.0.0.0:44327 37 80/tcp -> 0.0.0.0:44327 38 # 39 ``` 40 List the specified port mappings for a specific container: 41 ``` 42 # podman port b4d2f054 80 43 0.0.0.0:44327 44 # 45 ``` 46 47 List the port mappings for a specific container for port 80 and the tcp protocol: 48 ``` 49 # podman port b4d2f054 80/tcp 50 0.0.0.0:44327 51 # 52 ``` 53 ## SEE ALSO 54 **[podman(1)](podman.1.md)**, **[podman-inspect(1)](podman-inspect.1.md)** 55 56 ## HISTORY 57 January 2018, Originally compiled by Brent Baude <bbaude@redhat.com>