I'm reworking a bunch of scripts using the deprecated
docker run --link option in favor of user-defined bridges.
By searching in the doc, I didn't find any command to list all containers attached to a given network. For now, I am parsing the JSON output of
docker network inspect through the
jq tool; I've posted that as an answer below since it may help someone. But, do you know another option to achieve that? Maybe using a dedicated Docker command, option or a custom Go format?