Created
March 6, 2015 14:04
-
-
Save snez/a6d5f4872fe87f29dd6d to your computer and use it in GitHub Desktop.
Getting a docker container IP based on their exposed port from the shell
This file contains 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
ps uax | grep "container-port 3306" | egrep -o '172[^ ]+' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment