My server is at 0% free space. I just deleted 100gb of data in one of my docker volumes in an actively running container.
How do I free up the space and release it to the host system so that I am not at 0%. Do I need to stop the docker container to release it?
Thanks!
2
Answers
what you need to do is clean your docker system by using:
docker system prune
: https://docs.docker.com/config/pruning/This will remove unused containers, clean images and more.
If the container is still running, and deleting files doesn’t show any drop in disk usage, odds are good that the process inside your container has those file handles open. The OS won’t release the underlying file and reclaim the space until all processes with open file handles close those file handles, or the process exits. In short, you likely need to restart the container.