WhaleDeck logo

How to list all Docker containers of a Docker network

Written by Typ0genius profile picture @Typ0genius
solution

Quickly learn How to list all Docker containers of a Docker network with WhaleDeck Shorts. Clear, step-by-step guides for Docker.


The answer is quite simple. The following command shows how to

get all Docker containers that are connect to the Docker network my_network including their ip addresses.

docker network inspect -f '{{range .Containers}}{{printf "%s: %s\n" .Name .IPv4Address}}{{end}}' my_network
WhaleDeck
Tired of typing commands? Experience the ease of docker server management with WhaleDeck's beautiful GUI. Get things done faster and try it for free today! WhaleDeck on iPhone, iPad, and Mac