Closed AlexandrClick closed 1 year ago
The issue is that the --replace option doesn't work, and all subsequent attempts to start the containers immediately crash with the log message "Main process exited, code=killed, status=9/KILL." This can be resolved by manually removing the dead container.
Please be specific what does --replace
does not work mean? What is the actual podman error message. Looks like something is killing the processes but it is not clear why.
Based on your output Exited (0)
usually means the container exited successfully on its own.
Lastly Type=oneshot
is not a proper unit type for podman, you should stick to units generated with podman generate systemd
or quadlet. There are many pitfalls when using podman in systemd so it is best to stick what we know works, otherwise you are on your own.
Also systemctl daemon-reload
on its own shouldn't do anything to units. It just reloads them if they have been changed but it will not start/stop anything so I don't see how this should be directly related to the issue.
ps: please just copy and paste the output into code blocks. Screen shots are harder to read and cannot be indexed so we cannot search for it.
Issue Description
Describe your issue
Hello, we have around 300 systemd units that launch certain tasks in Podman containers. Sometimes, when we perform a daemon-reload, we encounter containers in a status of "Exited." The issue is that the --replace option doesn't work, and all subsequent attempts to start the containers immediately crash with the log message "Main process exited, code=killed, status=9/KILL." This can be resolved by manually removing the dead container.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Describe the results you received
Multiple containers in the "Exited" state. And they cannot be started.
Describe the results you expected
Describe the results you expected
Nothing bad happened.
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
Additional environment details OS:
5.15.0-53-generic #59~20.04.1-Ubuntu SMP Thu Oct 20 15:10:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Typical unitAdditional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting