Last active
September 9, 2016 09:12
-
-
Save rumverse/fae3df7749ad73a8bbf5d3629eb0cb6d to your computer and use it in GitHub Desktop.
Get the IP address and related information to one or all of docker containers from host
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
single container: | |
docker inspect <container id> | |
all containers: | |
docker ps | awk '{print $1}' | grep -v "CONTAINER" | xargs docker inspect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment