<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:"courier new",monospace">Control: tag -1 upstream</div><div class="gmail_default" style="font-family:"courier new",monospace"><br></div><div class="gmail_default" style="font-family:"courier new",monospace">Hi Antoine,</div><div class="gmail_default" style="font-family:"courier new",monospace"><br></div><div class="gmail_default" style="font-family:"courier new",monospace">Thanks for testing the podman package.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 25, 2022 at 12:15 PM Antoine Musso <<a href="mailto:hashar@free.fr">hashar@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Package: podman<br>
Version: 3.0.1+dfsg1-3+deb11u1<br>
Severity: normal<br>
<br>
Dear Maintainer,<br>
<br>
I went to try running podman as a normal user using the systemd service<br>
and socket defined by the Debian package. Namely:<br>
<br>
  $ systemctl --user start podman.service<br>
<br>
The service requires podman.socket which creates:<br>
<br>
<span class="gmail_default" style="font-family:"courier new",monospace"></span>  /run/user/1000/podman/podman.sock<br>
<br>
podman-system-service(1) mentions the API listening services expires<br>
after 5 seconds and thus the service self terminate. Which is fine since<br>
a request made to the podman.sock would bring up the service again.<br>
<br>
However the service deletes the socket file upon completion and it is<br>
not recreated by podman.socket and the setup is broken.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
My workaround has been to make a copy of the service:<br>
<br>
 cp /lib/systemd/system/podman.service \<br>
         ~/.config/systemd/user/mypodman.service<br>
<br>
Amend it to no more relies on the podman.socket and instruct the service<br>
to stay up indefinitely by passing it --time 0:<br>
<br>
 ExecStart=/usr/bin/podman $LOGGING system service --time 0<br></blockquote><div><br></div><div class="gmail_default" style="font-family:"courier new",monospace">That's an interesting find. It seems to me that you are trying to use</div><div class="gmail_default" style="font-family:"courier new",monospace">podman in a similar way like docker, albeit in rootless. While I'm not</div><div class="gmail_default" style="font-family:"courier new",monospace">really sure what's the point in using podman in this way, those systemd</div><div class="gmail_default" style="font-family:"courier new",monospace">user unit files are shipped upstream.<br><br>I've just checked that the most recent upstream version does not</div><div class="gmail_default" style="font-family:"courier new",monospace">pass --time 0 either: <a href="https://github.com/containers/podman/blob/main/contrib/systemd/system/podman.service.in">https://github.com/containers/podman/blob/main/contrib/systemd/system/podman.service.in</a></div><div class="gmail_default" style="font-family:"courier new",monospace"><br></div><div class="gmail_default" style="font-family:"courier new",monospace">May I ask you to please open an upstream issue at <a href="https://github.com/containers/podman/issues/new">https://github.com/containers/podman/issues/new</a> and report back with the issue number?<br><br>Thank you<br>-rt</div></div></div>