Skip to content

pass stop_grace_period as --stop-timeout to podman create#1485

Open
thrawn-sh wants to merge 1 commit into
containers:mainfrom
thrawn-sh:stop-grace-period
Open

pass stop_grace_period as --stop-timeout to podman create#1485
thrawn-sh wants to merge 1 commit into
containers:mainfrom
thrawn-sh:stop-grace-period

Conversation

@thrawn-sh

Copy link
Copy Markdown
Contributor

podman-compose passes stop_signal to podman create via --stop-signal but never passes stop_grace_period as --stop-timeout. This means containers are created with podman's default stop timeout of 10 seconds regardless of the compose file setting.

When podman stops a container (e.g. during recreation on up), it uses the container's embedded stop timeout, causing a premature SIGKILL after 10 seconds even when stop_grace_period is set to a higher value.

Parse stop_grace_period with str_to_seconds and pass it as --stop-timeout to podman create, matching how stop_signal is already handled.

podman-compose passes stop_signal to podman create via --stop-signal
but never passes stop_grace_period as --stop-timeout.  This means
containers are created with podman's default stop timeout of 10
seconds regardless of the compose file setting.

When podman stops a container (e.g. during recreation on up), it
uses the container's embedded stop timeout, causing a premature
SIGKILL after 10 seconds even when stop_grace_period is set to a
higher value.

Parse stop_grace_period with str_to_seconds and pass it as
--stop-timeout to podman create, matching how stop_signal is
already handled.

Signed-off-by: Alexander Dreweke <alexander@dreweke.net>
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

Successfully merging this pull request may close these issues.

1 participant