Created
May 29, 2015 13:02
-
-
Save sobi3ch/1a7a5fdb6d15356cc631 to your computer and use it in GitHub Desktop.
docker-ip
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
#!/bin/sh | |
# Get IP address from latest docker instance | |
exec docker inspect --format '{{ .NetworkSettings.IPAddress }}' "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment