Last active
August 22, 2023 20:07
-
-
Save sabbour/450be0cb2e461ce4f10cbf88bcc347c3 to your computer and use it in GitHub Desktop.
Clean up docker images and volumes to fix the "No space left on device" error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker rm $(docker ps -qf 'status=exited') | |
docker rmi $(docker images -qf 'dangling=true') | |
docker volume rm $(docker volume ls -qf 'dangling=true') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment