Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
extract docker container networks from docker inspect output
- Install jq
- To see docker container networks run:
docker inspect [container_id] | jq .[] | jq .NetworkSettings.Networks[]
This will give network ids.
- To see available networks with ids and names run docker network ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment