Open romeroyonatan opened 8 years ago
Hello, I had a problem similar to this. Here is what I found out:
If you create a container with this image, a volume will be created as well. This volume will contain the squid cache folder with it's contents. Because the way the squid cache works (and it's configured in the squid.conf https://github.com/sameersbn/docker-squid/blob/master/squid.conf#L2972), this folder will contains several small files. When you remove a container, it's volumes won't be removed and you can check that running this command:
docker volume ls -qf dangling=true
Now you are left with a folder with a bunch of small files. Over time, that will decrease the inodes left on your disk(source here) and you will get a message saying that there is no more space on the device.
You can either specify the volume you want to use and keep reusing it or you have to keep removing dangling volumes.
I know this post is very old but, I found this when I faced the same issue and looking for solutions. I solved the issue for me and wanted to add here just in case someone else face the issue.
I changed the max_filedesc value to 4096 in my squid.conf file. And that is it.
My squid.conf file is here:
https://github.com/polarbit/squid-forward-proxy/blob/master/squid.conf
@polarbit thanks, you solve my problem.
After running a month the docker fails because its has not enough space on hard disk
The host machine has space in their hard drive.