Skip to content

Docker/Podman has to use SIGKILL to stop the container #106

Description

Describe the bug
When Docker/Podman has to stop the container, nothing happens for 10 seconds until there is a SIGKILL. It is more noticeable when the new recreated container tries to kill the old one to replace it. It is not a big issue, it is just annoying having to wait 10 seconds each time - I cannot seem to change that time span.

podman stop -t 10 api_pylon-app_1
WARN[0010] StopSignal SIGTERM failed to stop container api_pylon-app_1 in 10 seconds, resorting to SIGKILL 
api_pylon-app_1

I cannot see anywhere in the docs to handle a SIGTERM. My Nuxt container in comparison exits on SIGTERM.

To Reproduce
Recreate an existing container or stop the running container.

Example:

podman-compose up --build --force-recreate -d pylon-app
podman stop pylon-app

Expected behavior
Graceful shutdown.

Additional context
Bun version 1.2.20.
Pylon version ^2.0.0.
Pylon Dev version 1.0.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions