Skip to content

Instantly share code, notes, and snippets.

@esmerino
Created December 9, 2019 21:22
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 esmerino/707e7f711d848116af2ab2dbdd9f7572 to your computer and use it in GitHub Desktop.
Save esmerino/707e7f711d848116af2ab2dbdd9f7572 to your computer and use it in GitHub Desktop.
docker rm -f $(docker ps -a -q)
docker rmi -f $(docker images -a -q)
docker volume rm $(docker volume ls -q)
docker network rm $(docker network ls | tail -n+2 | awk '{if($2 !~ /bridge|none|host/){ print $1 }}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment