Created
October 7, 2015 16:33
-
-
Save kjlape/59a148b1d369e86997b3 to your computer and use it in GitHub Desktop.
Find the port number of a docker compose instance.
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-compose ps $1 | grep $1 | sed -E 's/.*:([0-9]+)->.*/\1/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment