|
|
|
|
|
by NekkoDroid
145 days ago
|
|
nspawn containers aren't really any different to regular system images/archives other than they don't need a kernel. I don't think the setting is exposed to regular service units (it might be able to in the future, I don't know) and I don't think podman has any integration with it. What kinda service do you have where you need a full range of UIDs? |
|
Let's say Home Assistant. It would be nice to have a have some system user "homeassistant" with no home directory that owns the process and owns its /var/whereever/config.conf . It would be nice to have the isolation on host in addition to the isolation via container. But I don't want to be rebuilding any containers to get that, unless I am misunderstanding something on nsresourced.
I'd be really pleased with that setup. MQTT could be its own system user. And HA could depend on MQTT so I have nice startup behavior. Etc.
IDK how to have system users like this run a container without the subuid range. Even when I create the users with ranges in the file, there seems to be problems with informing systemd (as a non-root user) that the running process is different from the one it started.