Skip to content

Instantly share code, notes, and snippets.

@kleo
Created January 10, 2023 08:48
Show Gist options
  • Save kleo/7ab80336b805f7ac1b9cbeda2f6c486a to your computer and use it in GitHub Desktop.
Save kleo/7ab80336b805f7ac1b9cbeda2f6c486a to your computer and use it in GitHub Desktop.
Docker get a list of created networks' IP addresses (IP range of subnets) https://stackoverflow.com/a/60105387/10025507
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