fix(docker): let dumb-init forward the stop signal in the shipped compose file

The compose file drops every capability and adds back CHOWN, SETUID and
SETGID. dumb-init runs as root and node as the node user, and signalling a
process of another user needs KILL, so docker stop never reached node and
always ended in SIGKILL (exit 137). KILL only reaches processes inside the
container's own PID namespace. CI starts the image with the same set and now
checks that docker stop exits 0 after a logged SIGTERM.

Closes #2790
This commit is contained in:
Maurice
2026-10-25 16:47:22 +01:00
parent a5342df648
commit c05349f7c4
3 changed files with 17 additions and 2 deletions
+4
View File
@@ -11,6 +11,10 @@ services:
- CHOWN
- SETUID
- SETGID
# dumb-init runs as root and forwards SIGTERM to node, which runs as the
# node user; signalling another user's process needs KILL. Without it
# docker stop ends in SIGKILL and the graceful shutdown never runs.
- KILL
tmpfs:
- /tmp:noexec,nosuid,size=128m
ports: