github.com/guilhermebr/docker@v1.4.2-0.20150428121140-67da055cebca/docs/man/docker-port.1.md (about) 1 % DOCKER(1) Docker User Manuals 2 % Docker Community 3 % JUNE 2014 4 # NAME 5 docker-port - List port mappings for the CONTAINER, or lookup the public-facing port that is NAT-ed to the PRIVATE_PORT 6 7 # SYNOPSIS 8 **docker port** 9 [**--help**] 10 CONTAINER [PRIVATE_PORT[/PROTO]] 11 12 # DESCRIPTION 13 List port mappings for the CONTAINER, or lookup the public-facing port that is NAT-ed to the PRIVATE_PORT 14 15 # OPTIONS 16 **--help** 17 Print usage statement 18 19 # EXAMPLES 20 You can find out all the ports mapped by not specifying a `PRIVATE_PORT`, or 21 ask for just a specific mapping: 22 23 $ docker ps test 24 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 25 b650456536c7 busybox:latest top 54 minutes ago Up 54 minutes 0.0.0.0:1234->9876/tcp, 0.0.0.0:4321->7890/tcp test 26 $ docker port test 27 7890/tcp -> 0.0.0.0:4321 28 9876/tcp -> 0.0.0.0:1234 29 $ docker port test 7890/tcp 30 0.0.0.0:4321 31 $ docker port test 7890/udp 32 2014/06/24 11:53:36 Error: No public port '7890/udp' published for test 33 $ docker port test 7890 34 0.0.0.0:4321 35 36 # HISTORY 37 April 2014, Originally compiled by William Henry (whenry at redhat dot com) 38 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 39 November 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>