-
Notifications
You must be signed in to change notification settings - Fork 2.6k
podman-restart kills processes after reboot #26008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
compose is not directly supported by the podman team. Please provide the exact config on how the containers are created and provide the full logs of the podman-restart.service. If your containers are not reacting to SIGTERM then podman stop will kill it after the stop timeout (10s) so if you have configured a stop timeout higher then the systemd unit timeout then systemd starts killing everything in the unit instead. |
A reviewer has determined we need more information to understand the reported issue. A comment on what is missing should be provided. Be certain you:
If no response to the For more information on reporting issues on this repository, consult our issue guide. |
For each service there is a directory under version: "3.9"
services:
traefik:
image: docker.io/traefik:v3.0.3
hostname: traefik
read_only: true
security_opt:
- no-new-privileges
ports:
- 80:80
- 443:443
volumes:
- ./traefik/config:/etc/traefik:z,ro
- ./traefik/var/letsencrypt/acme.json:/letsencrypt/acme.json:z
labels:
- io.containers.autoupdate=registry
healthcheck:
test: traefik healthcheck --ping
networks:
proxy:
ipv4_address: 10.89.1.2
restart: always
networks:
proxy:
external:
name: proxy I start the container with
Edit: The following Systemd output may also help:
|
Thanks, I don't see the podman stop command ever being called by systemd, I think because there is nor proper mainpid setup systemd doesn't know which process to track exactly and it seems whatever process it used is exiting > 0 ("podman-restart.service: Main process exited, code=exited, status=125/n/a") which means ExecStop= is never called. If you modify the the systemd unit to use |
Unfortunately, Suse MicroOS is immutable, so /etc cannot be customized. |
systemd supports overwrites in /run as well, you can write the whole unit to Also people still need customize config files so I assume they still must have a way to edit /etc config files somehow? |
Issue Description
I have provided some podman-compose containers with
restart: always
and podman-restart should start them automatically after a reboot.Instead, the following happens with some (but not all) of them:
OS: Suse MicroOS version 20250422
Podman Version:
podman-restart.service file looks like that:
I'm not sure if this is related to #12699.
Steps to reproduce the issue
Steps to reproduce the issue
journalctl -b --grep kill
Describe the results you received
As explained at the beginning, podman-restart kills the processes.
Describe the results you expected
podman-restart starts all services and dont kill them.
podman info output
If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Using Suse MicroOS with rootless podman and SELinux
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: