Skip to content

Change CMD to use JSON array#38

Merged
urpylka merged 1 commit into
urpylka:masterfrom
gpezza2:gpezza2-DOCKERFILE-CMD-patch-1
Jun 13, 2026
Merged

Change CMD to use JSON array#38
urpylka merged 1 commit into
urpylka:masterfrom
gpezza2:gpezza2-DOCKERFILE-CMD-patch-1

Conversation

@gpezza2

@gpezza2 gpezza2 commented Jun 12, 2026

Copy link
Copy Markdown

When CMD is written as a shell string, Docker/Podman wraps it in /bin/sh -c "...". This means that when a podman compose down or podman stop is issued, the SIGTERM hits the outer /bin/sh where it is not handled, Docker/Podman then waits until stop_grace_period expires, where it then issues a SIGKILL. This has the possibility of being bad for the leveldb. As such, this fix allows for the SIGTERM to be properly handled by PID 1.

When CMD is written as a shell string, Docker/Podman wraps it in /bin/sh -c "...". This means that when a `podman compose down` or `podman stop` is issued, the SIGTERM hits the outer /bin/sh where it is not handled, Docker/Podman then waits until stop_grace_period expires, where it then issues a SIGKILL. This has the possibility of being bad for the leveldb. As such, this fix allows for the SIGTERM to be properly handled by PID 1.
@urpylka urpylka merged commit 8e7a28e into urpylka:master Jun 13, 2026
2 checks passed
@urpylka

urpylka commented Jun 13, 2026

Copy link
Copy Markdown
Owner

thanks for PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants