1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2025-06-17 04:34:21 +00:00

force remove PID file on startup

to fix #104
This commit is contained in:
2023-07-07 09:09:42 +03:00
parent e7d7016018
commit e108ff41f6

@ -148,4 +148,4 @@ EXPOSE 3128/tcp
USER squid
CMD ["sh", "-c", "/usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -z && exec /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -YCd 1"]
CMD ["sh", "-c", "rm -f /var/run/squid/squid.pid ; /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -z && exec /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -YCd 1"]