Created
July 19, 2018 22:20
-
-
Save skyzyx/96ee39b60f94b9928c7bdf827dbfb9fe to your computer and use it in GitHub Desktop.
#Docker mapping of open ports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}}{{$p}} -> {{(index $conf 0).HostPort}} {{end}}' d7aab3bcecd4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment