Skip to content

Instantly share code, notes, and snippets.

@Rycochet
Last active December 5, 2025 15:37
Show Gist options
  • Select an option

  • Save Rycochet/bc53b479a99b92122f63cd4e79216b9e to your computer and use it in GitHub Desktop.

Select an option

Save Rycochet/bc53b479a99b92122f63cd4e79216b9e to your computer and use it in GitHub Desktop.
List all docker containers and their IP addresses
#! /bin/bash
docker inspect -f '{{.Name}} - {{range.NetworkSettings.Networks}}{{.IPAddress}}, {{end}}' $(docker ps -aq) | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment