Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thapakazi/823ad2a1160af75876ea0ecb2c2ab78c to your computer and use it in GitHub Desktop.
Save thapakazi/823ad2a1160af75876ea0ecb2c2ab78c to your computer and use it in GitHub Desktop.
List Docker Container Names and IPs
function drips(){
docker ps -q | xargs -n 1 docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' | sed 's/ \// /'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment