_evhfa
Last Updated: January 06, 2019
·
4
· skyzyx

View Docker mapping of container ports to host ports

docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}}{{$p}} -> {{(index $conf 0).HostPort}} {{end}}' $CONTAINER_ID