4 Jun
2021
4 Jun
'21
9:30 p.m.
Hi, I have a process (A) that starts a podman container as a child process (B). When A dies due to a crash or gets killed I want the container to be killed as well. I tried to start B with all kinds of process attributes, like Setsid = true, Setpgid = true, Pdeathsig = SIGKILL, but B does not get killed and the container runs on. In fact I see that the podman process B has another child process and B seems to get reparented to a "systemd --user" process when A dies. How can I make sure the podman container dies when the parent process dies? This is on Linux and rootless. thanks, Hendrik