Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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