Skip to content

Change CMD to use JSON array#38

Open
gpezza2 wants to merge 1 commit into
urpylka:masterfrom
gpezza2:gpezza2-DOCKERFILE-CMD-patch-1
Open

Change CMD to use JSON array#38
gpezza2 wants to merge 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.
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.

1 participant