diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template
index 56e62f36c5cc5672b97953870a0a56872a211f3e..eb623c2e8cbd95ca7aa39cc974f3c45a5492d48b 100644
--- a/Dockerfile-alpine.template
+++ b/Dockerfile-alpine.template
@@ -109,6 +109,6 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
 
 EXPOSE 80
 
-STOPSIGNAL SIGTERM
+STOPSIGNAL SIGQUIT
 
 CMD ["nginx", "-g", "daemon off;"]
diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template
index e614aae1ea82d4589e0b5626740dd23c8421248e..8521d5a9ea1d4fb2bdfb960568c6771e6952077e 100644
--- a/Dockerfile-debian.template
+++ b/Dockerfile-debian.template
@@ -100,6 +100,6 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
 
 EXPOSE 80
 
-STOPSIGNAL SIGTERM
+STOPSIGNAL SIGQUIT
 
 CMD ["nginx", "-g", "daemon off;"]
diff --git a/mainline/alpine-perl/Dockerfile b/mainline/alpine-perl/Dockerfile
index e0c54b80ad5d918ce9592b75620e9149cef9a73b..1b5dfd0734cc8df17e9a45dd07aefee652cde09f 100644
--- a/mainline/alpine-perl/Dockerfile
+++ b/mainline/alpine-perl/Dockerfile
@@ -120,6 +120,6 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
 
 EXPOSE 80
 
-STOPSIGNAL SIGTERM
+STOPSIGNAL SIGQUIT
 
 CMD ["nginx", "-g", "daemon off;"]
diff --git a/mainline/alpine/Dockerfile b/mainline/alpine/Dockerfile
index 694870710ddbc62daeec2e9603070cc7fee54d43..dce93c6badf13eccd21219b3a9b25cf9822b3c14 100644
--- a/mainline/alpine/Dockerfile
+++ b/mainline/alpine/Dockerfile
@@ -119,6 +119,6 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
 
 EXPOSE 80
 
-STOPSIGNAL SIGTERM
+STOPSIGNAL SIGQUIT
 
 CMD ["nginx", "-g", "daemon off;"]
diff --git a/mainline/debian-perl/Dockerfile b/mainline/debian-perl/Dockerfile
index 5ff72afc4db16f5c571b39b9c5b3ff8aeaea2a30..1513ece81061978d28554f0286924992dc5bdc08 100644
--- a/mainline/debian-perl/Dockerfile
+++ b/mainline/debian-perl/Dockerfile
@@ -111,6 +111,6 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
 
 EXPOSE 80
 
-STOPSIGNAL SIGTERM
+STOPSIGNAL SIGQUIT
 
 CMD ["nginx", "-g", "daemon off;"]
diff --git a/mainline/debian/Dockerfile b/mainline/debian/Dockerfile
index ab4595f6335639e51eb8f02b3aa61754deb0a528..df444aea276aa001e88402b4587f98a011e4dc6b 100644
--- a/mainline/debian/Dockerfile
+++ b/mainline/debian/Dockerfile
@@ -110,6 +110,6 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
 
 EXPOSE 80
 
-STOPSIGNAL SIGTERM
+STOPSIGNAL SIGQUIT
 
 CMD ["nginx", "-g", "daemon off;"]
diff --git a/stable/alpine-perl/Dockerfile b/stable/alpine-perl/Dockerfile
index fcb7da5bf6a50d0a64b8e35eca298d7946e16780..d86c2ccd165d1f74ad17e2f1ad98ff232f338e1a 100644
--- a/stable/alpine-perl/Dockerfile
+++ b/stable/alpine-perl/Dockerfile
@@ -120,6 +120,6 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
 
 EXPOSE 80
 
-STOPSIGNAL SIGTERM
+STOPSIGNAL SIGQUIT
 
 CMD ["nginx", "-g", "daemon off;"]
diff --git a/stable/alpine/Dockerfile b/stable/alpine/Dockerfile
index 1bf80d1f0678c907d75d583d24a0b8a678030db8..bd34cfb1fc0db96fd4dfb34d904a017782d54ddf 100644
--- a/stable/alpine/Dockerfile
+++ b/stable/alpine/Dockerfile
@@ -119,6 +119,6 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
 
 EXPOSE 80
 
-STOPSIGNAL SIGTERM
+STOPSIGNAL SIGQUIT
 
 CMD ["nginx", "-g", "daemon off;"]
diff --git a/stable/debian-perl/Dockerfile b/stable/debian-perl/Dockerfile
index a3cf347712f036c65bf5d7abe5546f5f3e5b467c..9998d1321e6286eb697f558d86d0ba8e28ba58c4 100644
--- a/stable/debian-perl/Dockerfile
+++ b/stable/debian-perl/Dockerfile
@@ -111,6 +111,6 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
 
 EXPOSE 80
 
-STOPSIGNAL SIGTERM
+STOPSIGNAL SIGQUIT
 
 CMD ["nginx", "-g", "daemon off;"]
diff --git a/stable/debian/Dockerfile b/stable/debian/Dockerfile
index b9cf7d16d3630be7f265f807455d50c2e5541d56..a4b6b7f0731666c2a53ba71a23fff33b3616ba41 100644
--- a/stable/debian/Dockerfile
+++ b/stable/debian/Dockerfile
@@ -110,6 +110,6 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
 
 EXPOSE 80
 
-STOPSIGNAL SIGTERM
+STOPSIGNAL SIGQUIT
 
 CMD ["nginx", "-g", "daemon off;"]