Created
November 14, 2017 10:12
-
-
Save fabienengels/4efc8bb84574e586be4c13d74d711aa3 to your computer and use it in GitHub Desktop.
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
fabien@9b ~ » which postgres_get_port | |
postgres_get_port () { | |
docker inspect postgres_$1 | jq -M -r '.[0].NetworkSettings.Ports."5432/tcp"[0].HostPort' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment