docker port : Lists the port mappings for the specified container, or looks for ports that PRIVATE_PORT NAT to the public. Check the port mapping of the container mynginx. 2.45.1. Grammar ¶
docker port [OPTIONS] CONTAINER [PRIVATE_PORT[/PROTO]]
2.45.2. Example ¶
runoob@runoob:~$ docker port mymysql
3306/tcp -> 0.0.0.0:3306