Skip to content

Instantly share code, notes, and snippets.

@naXa777
Created June 7, 2020 07:49
Show Gist options
  • Save naXa777/46b8a1c3de6778626cac10b2900434b9 to your computer and use it in GitHub Desktop.
Save naXa777/46b8a1c3de6778626cac10b2900434b9 to your computer and use it in GitHub Desktop.
Prune docker system and remove all containers, images, networks, volumes to reclaim space
#!/bin/sh
# see also https://docs.docker.com/config/pruning/
docker system prune --volumes -f
docker image prune -a -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment