Created
August 6, 2019 14:56
-
-
Save PetrGlad/5fefabe225086f6fa388dc271c14360b to your computer and use it in GitHub Desktop.
Get IP of a docker container
This file contains 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/bash | |
docker inspect $1 | jq -r ".[0].NetworkSettings.Networks.${2:-bridge}.IPAddress" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment