-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug Report: Container does not stop using SIGTERM - Podman/Docker resorts to SIGKILL #205
Labels
bug
Something isn't working
Comments
internationalcrisis
added a commit
to internationalcrisis/redlib
that referenced
this issue
Oct 1, 2024
internationalcrisis
added a commit
to internationalcrisis/redlib
that referenced
this issue
Oct 1, 2024
internationalcrisis
added a commit
to internationalcrisis/redlib
that referenced
this issue
Oct 1, 2024
internationalcrisis
added a commit
to internationalcrisis/redlib
that referenced
this issue
Oct 1, 2024
internationalcrisis
added a commit
to internationalcrisis/redlib
that referenced
this issue
Oct 1, 2024
internationalcrisis
added a commit
to internationalcrisis/redlib
that referenced
this issue
Oct 1, 2024
internationalcrisis
added a commit
to internationalcrisis/redlib
that referenced
this issue
Oct 1, 2024
internationalcrisis
added a commit
to internationalcrisis/redlib
that referenced
this issue
Oct 1, 2024
internationalcrisis
added a commit
to internationalcrisis/redlib
that referenced
this issue
Oct 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using the Docker, or Podman container built either using this Dockerfile or the image at
quay.io/redlib/redlib:latest
, stopping the container using eitherpodman stop redlib
ordocker stop redlib
does not stop the container properly, and instead of usingSIGTERM
, the container stops usingSIGKILL
. This causes a 10 second delay in stopping the container.Although not a large problem as Redlib does not store any data etc, this still delays container shutdown - e.g. added 10 second delay when shutting down a VM.
Steps to reproduce the bug
Pull container image from
quay.io/redlib/redlib:latest
or build from the DockerfileRun the container using Podman (same for Docker)
Stop the container
Warning from Podman (Docker does not give a warning, but there is still a 10s+ time stopping the container)
WARN[0010] StopSignal SIGTERM failed to stop container redlib in 10 seconds, resorting to SIGKILL redlib
What's the expected behavior?
Stopping the container using either
podman stop redlib
ordocker stop redlib
stopping quickly as it terminatesPID 1
redlib
properly with aSIGTERM
to shut down the application instead of falling back on aSIGKILL
.Additional context / screenshot
This behaviour is seen using the Dockerfile in the root of this repository, the
quay.io
repository image as well as this Dockerfile seen at #122 (comment)This could be worked around by either handling the
SIGTERM
in theredlib
application itself, or by using abash
script to handle and pass aSIGKILL
to the process received by the BASH script used as a container CMD - however this should not be the best setup as this could cause other problems by adding more complexity.The text was updated successfully, but these errors were encountered: