From e108ff41f6f848913b1c76fb33d274717a81e9d1 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 7 Jul 2023 09:09:42 +0300 Subject: [PATCH] force remove PID file on startup to fix #104 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b161dda..e247deb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]