Skip to content

Instantly share code, notes, and snippets.

@apzentral
Created April 26, 2021 22:56
Show Gist options
  • Save apzentral/4de5ec75b125e8a616ab06996265ed2d to your computer and use it in GitHub Desktop.
Save apzentral/4de5ec75b125e8a616ab06996265ed2d to your computer and use it in GitHub Desktop.
Docker check all subnet
# Need to install jq
docker network inspect $(docker network ls | awk '$3 == "bridge" { print $1}') | jq -r '.[] | .Name + " " + .IPAM.Config[0].Subnet' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment