Enabling lingering helped me in your situation:
$ loginctl enable-linger $USER
Now I can see my user's $XDG_RUNTIME_DIR
being created and used:
$ ls -lant $XDG_RUNTIME_DIR
total 0
drwxr-xr-x 6 1177 1177 160 Aug 5 11:36 systemd
drwx------ 8 1177 1177 220 Aug 5 11:36 .
drwx------ 3 1177 1177 60 Aug 5 11:36 dbus-1
drwx------ 3 1177 1177 60 Aug 5 11:33 containers
drwx-----T 2 1177 1177 40 Aug 5 11:33 libpod
drwx------ 2 1177 1177 140 Aug 5 11:33 gnupg
srw-rw-rw- 1 1177 1177 0 Aug 5 11:33 pk-debconf-socket
drwxr-xr-x 2 1177 1177 60 Aug 5 11:33 podman
srw-rw-rw- 1 1177 1177 0 Aug 5 11:33 snapd-session-agent.socket
srw-rw-rw- 1 1177 1177 0 Aug 5 11:33 bus
drwxr-xr-x 3 0 0 60 Aug 5 11:33 ..
Credit goes to this suggestion from podman
's sumptuous warning message:
$ podman run -u 1177 ubuntu bash -c "whoami"
WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user session available
WARN[0000] For using systemd, you may need to login using an user session
WARN[0000] Alternatively, you can enable lingering with: `loginctl enable-linger 1177` (possibly as root)
WARN[0000] Falling back to --cgroup-manager=cgroupfs
WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user session available
WARN[0000] For using systemd, you may need to login using an user session
WARN[0000] Alternatively, you can enable lingering with: `loginctl enable-linger 1177` (possibly as root)
WARN[0000] Falling back to --cgroup-manager=cgroupfs
1177