Skip to content

Docker compose containers quit very slowly #681

@nk9

Description

@nk9

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions