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

Docker compose containers quit very slowly #681

Open
nk9 opened this issue Dec 25, 2024 · 0 comments
Open

Docker compose containers quit very slowly #681

nk9 opened this issue Dec 25, 2024 · 0 comments

Comments

@nk9
Copy link

nk9 commented Dec 25, 2024

When you quit the EasyOCR example Docker compose container with Ctrl-C, you have to wait 10 seconds for the process to gracefully quit. This is because the container lacks an init process, so the EasyOCR process is itself running as PID 1.

Fortunately, it's very easy to fix with Docker compose's init setting. With that added, the process quits in 0.1s. 100x faster!

I will submit a PR for the easyocr example, since that's the one I've tested. But this is probably an issue in all the other containers as well. I'd be happy to submit a PR making the change for all of them.

nk9 added a commit to nk9/label-studio-ml-backend that referenced this issue Dec 25, 2024
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