Discussion:
clean docker library dir
(too old to reply)
Corey H
2024-08-03 00:20:01 UTC
Permalink
Hello

My VPS has docker installed, which consumes a lot of disk.

/var/lib/docker# du -sh .
71.0G .

I tried 'docker system prune' which seems not to delete the libraries it
intalled.

Do you know how to clean the objects in '/var/lib/docker'?

Thanks.
Ezri Zhu
2024-08-03 00:40:01 UTC
Permalink
See: https://docs.docker.com/reference/cli/docker/system/prune/
You may also want to do `docker system prune --all` to also remove all **stopped** containers.
Please also do `docker ps -a` to show all running *AND* stopped containers to make sure you know what you are deleting.

Good luck,

—
Ezri
Hello
My VPS has docker installed, which consumes a lot of disk.
/var/lib/docker# du -sh .
71.0G .
I tried 'docker system prune' which seems not to delete the libraries it intalled.
Do you know how to clean the objects in '/var/lib/docker'?
Thanks.
Loading...