Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save asimzeeshan/784fd6f5df59eeaba3e978a383bb2548 to your computer and use it in GitHub Desktop.
Save asimzeeshan/784fd6f5df59eeaba3e978a383bb2548 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