Skip to content
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

Graceful shutdown from docker container image #918

Open
at-seavus opened this issue Oct 29, 2024 · 0 comments
Open

Graceful shutdown from docker container image #918

at-seavus opened this issue Oct 29, 2024 · 0 comments

Comments

@at-seavus
Copy link

Describe the bug

Docker container image does not exit gracefully no matter what I do to it.
I am running a kubernetes pod in which I wanted to crawl a website. This POD has three containers in it and after they are done with preparing the environment for crawl and actually crawl the website I want all of my containers exit with exit code 0 except for the main container (the one running pywb). I tried adding some shell script code to send SIGTERM, SIGINT or similar to it but nothing stops it properly and gracefully shuts it down, I was wondering if this functionality is present since I didn't find anything in the documentation about it. Kind regards

Steps to reproduce the bug

Create a kubernetes pod with 2 or more containers in it
pywb container can use args: ["wayback", "--record", "--live", "-a"] to start the live server
Set shareProcessNamespace: true in your POD definition
Start the POD and try killing the wayback process from another POD
pywb container exits with exit code 137 or similiar (depending on the signal) and restarts the container

Expected behavior

Being able to gracefully shutdown the container

Screenshots

Environment

  • OS: [e.g. iOS] Ubuntu 20.04 running kubernetes in minikube
  • Browser [e.g. chrome, safari] Firefox
  • Version [e.g. 22] 131.0.3 (64-bit)

Additional context

This isn't so much of a bug report because the application is theoretically working fine, I just want to know if it is possible to exit it gracefully. Kind regards

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

No branches or pull requests

1 participant