Created
April 26, 2021 22:56
-
-
Save apzentral/4de5ec75b125e8a616ab06996265ed2d to your computer and use it in GitHub Desktop.
Docker check all subnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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