github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/docs/source/markdown/podman-port.1.md (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 lookup 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, you cannot pass any container names 19 or private ports/protocols as filters. 20 21 **--latest**, **-l** 22 23 Instead of providing the container name or ID, use the last created container. If you use methods other than Podman 24 to run containers such as CRI-O, the last started container could be from either of those methods. 25 26 The latest option is not supported on the remote client. 27 28 ## EXAMPLE 29 30 List all port mappings 31 ``` 32 # podman port -a 33 b4d2f05432e482e017b1a4b2eae15fa7b4f6fb7e9f65c1bde46294fdef285906 34 80/udp -> 0.0.0.0:44327 35 80/tcp -> 0.0.0.0:44327 36 # 37 ``` 38 39 List port mappings for a specific container 40 ``` 41 # podman port b4d2f054 42 80/udp -> 0.0.0.0:44327 43 80/tcp -> 0.0.0.0:44327 44 # 45 ``` 46 List the port mappings for the latest container and port 80 47 ``` 48 # podman port b4d2f054 80 49 0.0.0.0:44327 50 # 51 ``` 52 53 List the port mappings for a specific container for port 80 and the tcp protocol. 54 ``` 55 # podman port b4d2f054 80/tcp 56 0.0.0.0:44327 57 # 58 ``` 59 ## SEE ALSO 60 podman(1), podman-inspect(1) 61 62 ## HISTORY 63 January 2018, Originally compiled by Brent Baude <bbaude@redhat.com>