Skip to content

Instantly share code, notes, and snippets.

@sean-lin
Last active December 4, 2015 07:07
Show Gist options
  • Save sean-lin/4f7f5c00331517ed7b55 to your computer and use it in GitHub Desktop.
Save sean-lin/4f7f5c00331517ed7b55 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
docker ps |awk '{if(NR>1) print $1}' | xargs -n 1 docker inspect -f '{{ .Name }} {{ .NetworkSettings.IPAddress }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment