Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 628 Bytes

Identify_which_IP_and_port_a_container_is_externally_accessible_on.md

File metadata and controls

6 lines (4 loc) · 628 Bytes

Identify which IP and port a container is externally accessible on

Basically, you can look up every port which is exposed by using docker inspect CONTAINER on every container. However, to just get the port binding information, you could use docker port CONTAINER. To make this more useable, you can also script this like docker port `docker ps -q` to get the export of all bound ports of all running containers. The official way would be to use just docker ps.

Official Docker Documentation

Docker Engine Port Command