1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2024-12-22 00:53:13 +00:00

force remove PID file on startup

to fix #104
This commit is contained in:
Dmitry Belyaev 2023-07-07 09:09:42 +03:00
parent e7d7016018
commit e108ff41f6
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -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"]