User-level podman-restart.service does not work properly on reboot #22451
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.
Issue Description
I have several rootless containers created via docker-compose files. The user running the containers has linger enabled. I am trying to use the user-level
podman-restart.service
to start and stop my containers on reboot. Currently it is delaying shutdown and also failing to start my containers back up on system boot.Here are the podman-restart logs on shutdown:
It seems like it's attempting start the containers back up even though the system is shutting down?
Here are the podman-restart logs on boot:
Here it seems like the network isn't available when the containers start up. It is also complaining about not finding one of my drive mounts. Shouldn't podman-restart.service wait until network and mounts are up before attempting startup? If I manually restart podman-restart, then everything works fine, indicating some race condition on boot.
Steps to reproduce the issue
Steps to reproduce the issue
docker-compose
Describe the results you received
System shutdown is sometimes delayed by podman-restart. Containers also fail to start back up due to network interface not being up.
Describe the results you expected
Podman should neatly shutdown all containers before reboot. Containers should also automatically start backup on boot.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: