Last active
December 5, 2025 15:37
-
-
Save Rycochet/bc53b479a99b92122f63cd4e79216b9e to your computer and use it in GitHub Desktop.
List all docker containers and their IP addresses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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