Nalin thanks, this fixed it!

On 01.06.2021 16:51, Nalin Dahyabhai wrote:
On Sat, May 29, 2021 at 11:31:59PM +0300, Michael Ivanov wrote:
Not sure whether it is a right place o ask, but still. I am trying to run docker registry
in rootless podman. I have created a 'register' user and started the registry with the
following command:

   podman run --privileged -d  --name registry -p 5000:5000 -v /srv/registry:/var/lib/registry  --restart=always registry:latest

(/srv/registry belongs to 'registry' user, so should be visible in rootless container
as belonging to root).

So far so good, I test the register with podman search and it returns expected results.
But as soon as I exit the ssh session in which I started the container, container
terminates, not immediately but in half minute or so.
That sounds a lot like systemd-logind killing the user's processes after
the user's logged out.

Check the logind.conf(5) man page section on the "KillUserProcesses"
setting and the loginctl(1) page's section on the "enable-linger"
command for more info, but the short version is that a one time
  loginctl enable-linger $USER
should keep it from doing that.

HTH,

Nalin


-- 
 \   / |			           |
 (OvO) |  Михаил Иванов                    |
 (^^^) |                                   |
  \^/  |      E-mail:  ivans@isle.spb.ru   |
  ^ ^  |                                   |