Open iocron opened 1 year ago
Explained in https://rootlesscontaine.rs/getting-started/common/login/
The
$XDG_RUNTIME_DIR
environmental variable is set when:
- Logged in as a non-root user via the graphic console .
- Logged in as a non-root user via
ssh <user>@<hostname>
.- Logged in as the root, and then switched to a non-root user via
machinectl shell <user>@
.The environmental variable is not set when:
- Logged in as the root, and then switched to a non-root user via
su -l <user>
- Logged in as the root, and then switched to a non-root user via
sudo -u <user>
- Logged in as the root, and then switched to a non-root user via
ksu <user>
OS: Ubuntu 22.04.1 LTS Installed packages (apt-get): uidmap and docker-ce-rootless-extras Running Command:
dockerd-rootless-setuptool.sh install
Results in:I've tested nearly all variations to work around it. E.g. setting export variables beforehand, setting them on runtime, giving the user all kinds of permissions, using loginctl enable-linger, etc. But none seems to work. The only way I was beeing able to make it work was the following: