Created
July 8, 2016 17:52
-
-
Save dmouse/02945d417a843c2ff8715a69b7fe4c0c to your computer and use it in GitHub Desktop.
Show the IP address within a docker-compose project
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
function docker-compose-ip | |
docker-ip (docker-compose ps | awk '{ if ($1 !~ "---------------------------------------------------------------------------" && $1 !~ "Name"){ print $1 } }') $argv; | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment