Skip to content

Instantly share code, notes, and snippets.

@fabioam
Forked from bastman/docker_remove_networks.txt
Created February 11, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabioam/c7e75e95dfe4fbef1475343b0743b527 to your computer and use it in GitHub Desktop.
Save fabioam/c7e75e95dfe4fbef1475343b0743b527 to your computer and use it in GitHub Desktop.
remove all docker networks
docker network rm $(docker network ls | grep "foo" | awk '/ / { print $1 }')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment