Skip to content

Instantly share code, notes, and snippets.

@rumverse
Last active September 9, 2016 09:12
Show Gist options
  • Save rumverse/fae3df7749ad73a8bbf5d3629eb0cb6d to your computer and use it in GitHub Desktop.
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
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