Containers created using docker compose have StopTimeout set to 0 #19139
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
stale-issue
Issue Description
When using Docker Compose with Podman, my services have not been shutting down cleanly. After using strace on the hostto confirm that the container PID 1 process was also receiving SIGKILL, I've realized that the container's
StopTimeout
is set to 0 in thepodman inspect
output. For comparison, I created a container usingpodman run
, and that container had aStopTimeout
of 10.Steps to reproduce the issue
Steps to reproduce the issue
stop_grace_period
is not set for the service in question.sudo env DOCKER_BUILDKIT=0 /usr/libexec/docker/cli-plugins/docker-compose --host unix:///var/run/podman/podman.sock --file=compose.yaml up --no-start
(disabling BUILDKIT is probably not necessary here)inspect
the container created for the compose projectstop_grace_period
to a non-zero value for the service in questionsudo podman run whatever_suitable_image /bin/true
inspect
the container created for therun
commandDescribe the results you received
StopTimeout
is set to 0 when the compose file has no value forstop_grace_period
, the configured value whenstop_grace_period
is set, and is set to 10 for the container created byrun
.Describe the results you expected
StopTimeout
should be set to the default (10 in my case) if no other value is set (e.g.stop_grace_period
)podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: