Skip to content

Instantly share code, notes, and snippets.

@snez
Created March 6, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snez/a6d5f4872fe87f29dd6d to your computer and use it in GitHub Desktop.
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
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