Skip to content

List All Containers in a Network by Name

View on Twitter

#Docker TIP 💡
List all containers that belong to a network by their names with:

➡️ docker network inspect -f '{{range .Containers}}{{.Name}} {{end}}' <network>

Useful if you want to find out which containers can communicate with each other.

You might also like
Companies That Provide Visa Sponsorship Read tip
Emoji Guide for Commit Messages Read tip
Programatically Check If System Requires Restart Read tip