how to know docker port code example
Example 1: check ports in use docker
docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
Example 2: docker port
HOST:CONTAINER
docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
HOST:CONTAINER