You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a suggestion to revise the method to reload the squid configuration on a running instance.
I have used sameersbn/squid:3.3.8-23 and it work nice until I try to reload the squid configuration on a running instance. I found that after typing docker kill -s HUP squid to my terminal, squid shows the same configuration as before. I try a lot of ways to figure out the problem, but only to find that it was the problem of mounting the squid.conf.
Here is the detail.
I create and run sameersbn/squid:3.3.8-23 following the instruction in README.md:
This works nice, however, when you try to reload squid.conf on the running instance using:
docker kill -s HUP squid
You will find the configuration of squid doesn't change at all. After a lot of miserable reading of docker issues, I found the problem. Docker can not detect the mounted file changes unless you mount the directory. In my situation, I create a new container and mount my squid.conf directory, then HUP works. That is:
Hi,
This is a suggestion to revise the method to reload the squid configuration on a running instance.
I have used
sameersbn/squid:3.3.8-23
and it work nice until I try to reload the squid configuration on a running instance. I found that after typingdocker kill -s HUP squid
to my terminal, squid shows the same configuration as before. I try a lot of ways to figure out the problem, but only to find that it was the problem of mounting thesquid.conf
.Here is the detail.
I create and run
sameersbn/squid:3.3.8-23
following the instruction in README.md:This works nice, however, when you try to reload squid.conf on the running instance using:
You will find the configuration of squid doesn't change at all. After a lot of miserable reading of docker issues, I found the problem. Docker can not detect the mounted file changes unless you mount the directory. In my situation, I create a new container and mount my squid.conf directory, then
HUP
works. That is:The magic is
--volume /etc/squid:/etc/squid3
I hope my experience could help new guys like me. 😃
The text was updated successfully, but these errors were encountered: