github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/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. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines) 25 26 ## EXAMPLE 27 28 List all port mappings 29 ``` 30 # podman port -a 31 b4d2f05432e482e017b1a4b2eae15fa7b4f6fb7e9f65c1bde46294fdef285906 32 80/udp -> 0.0.0.0:44327 33 80/tcp -> 0.0.0.0:44327 34 # 35 ``` 36 37 List port mappings for a specific container 38 ``` 39 # podman port b4d2f054 40 80/udp -> 0.0.0.0:44327 41 80/tcp -> 0.0.0.0:44327 42 # 43 ``` 44 List the port mappings for the latest container and port 80 45 ``` 46 # podman port b4d2f054 80 47 0.0.0.0:44327 48 # 49 ``` 50 51 List the port mappings for a specific container for port 80 and the tcp protocol. 52 ``` 53 # podman port b4d2f054 80/tcp 54 0.0.0.0:44327 55 # 56 ``` 57 ## SEE ALSO 58 **[podman(1)](podman.1.md)**, **[podman-inspect(1)](podman-inspect.1.md)** 59 60 ## HISTORY 61 January 2018, Originally compiled by Brent Baude <bbaude@redhat.com>