How do I get a list of all the containers in a user-defined docker network?
I would like to get all the commit hashes of every container for a specific user-defined dock
You can list all networks with:
docker network ls
And inspect one network to see its hosts (containers)
docker network inspect
You can see which networks a container is connected to inspecting that container:
docker inspect
More info in the docs: https://docs.docker.com/engine/userguide/networking/work-with-networks/#create-networks