Skip to content

Instantly share code, notes, and snippets.

@marioharper
Last active July 31, 2023 12:44
Show Gist options
  • Save marioharper/109a24903a9b841533ffa4c5f9f35eee to your computer and use it in GitHub Desktop.
Save marioharper/109a24903a9b841533ffa4c5f9f35eee to your computer and use it in GitHub Desktop.
Stop all docker processes, remove all containers, remove all images
# stop all processes
docker stop $(docker ps -aq)
# remove all containers
docker rm $(docker ps -aq)
# remove all images
docker rmi $(docker images -aq)
# delete all volumes
docker volume prune
@SershoCode
Copy link

May I use it? clicked a star, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment