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