Docker Docker command: port The Docker port command allows you to print the public port for a port binding in Docker. It is a useful tool for inspecting network settings and accessing exposed ports on a container.