Linux/Docker: List ip addresses of all containers.

PHOTO EMBED

Mon Aug 29 2022 16:40:41 GMT+0000 (Coordinated Universal Time)

Saved by @marcopinero #bash

docker ps -q | xargs -n 1 docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' | sed 's/ \// /'
content_copyCOPY

List all ip addresses of containers.