Clean up unused Docker data
docker free up disk space | docker system prune | clean up docker safely | docker | prune | cleanup | disk-spaceCaution: This command changes the system. Understand what it does before you run it.
docker system pruneCleans up everything that is currently unused in one step: stopped containers, networks without containers, dangling images and the build cache. Volumes, and with them databases and uploads, remain untouched. Docker lists what will be removed beforehand and asks for confirmation.
Note: Stopped containers are deleted, along with everything that existed only in their writable layer. If you have only paused a container temporarily, start it first. Docker commands require root or the docker group.
Also searched as
- docker free up disk space
- docker system prune
- clean up docker safely