Replies: 5 comments 7 replies
-
could you elaborate in what non-interactive account means? |
Beta Was this translation helpful? Give feedback.
-
Well if all you want is to run the container within a user namespace, then you can start it as root but run it with --userns=auto. You should be able to run it in rootless mode as well, but you will need to do loginctl enable-linger USERNAME. Then just enter the account and setup a unit file to run, potentially using a quadlet. |
Beta Was this translation helpful? Give feedback.
-
This blog was also just published. https://www.redhat.com/sysadmin/container-systemd-persist-reboot |
Beta Was this translation helpful? Give feedback.
-
I was writing this answer in February 2023 but never managed to post it. On a Fedora 37 computer, the useradd command will not create any subordinate UIDs or GIDs In other words, instead of
use
A sketch (untested and unfinished work), I haven't written all steps: You could for instance use a systemd path unit (see the man page systemd.path) Create the file /home/myuser/.config/systemd/user/loadimage.path with this file contents
Create the file /home/myuser/.config/systemd/user/loadimage.service with this file contents
Adjust file permissions
Enable linger
Just a sketch. Further work is needed... |
Beta Was this translation helpful? Give feedback.
-
@eriksjolund |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have done the following by using an interactive account that is used to run my rootless container:
however, due to security compliance, the container must be run using non-interactive account.
does anyone have similar issue and how can it be achieved ?
my other constraints and questions are
if the podman is rootful , can the above be achieved ? the container should still be running under non-interactive account, just like how nginx is run.
Beta Was this translation helpful? Give feedback.
All reactions