-
Notifications
You must be signed in to change notification settings - Fork 833
Systemd requirement for running rootless containers #310
Copy link
Copy link
Closed
Labels
Description
Currently systemd is required for installing containerd with lima:
ERRO[0016] [1 error occurred:
* failed to satisfy the optional requirement 1 of 2 "systemd must be available": systemd is required to run containerd, but does not seem to be available.
Make sure that you use an image that supports systemd. If you do not want to run
containerd, please make sure that both 'container.system' and 'containerd.user'
are set to 'false' in the config file.
Should we make another OpenRC service, that drops privileges ?
/etc/init.d/S60buildkitd
/etc/init.d/S60containerd
(there seems to be a small typo in containerd.system as well)
Everything runs fine with sudo nerdctl. It also enables faster builds.
Just wonder if supporting rootless would be a "requirement"/desire ?
I've packaged shadow, so mostly fuse-overlayfs and slirp4netns left...
The services would start as root, and then change to use UID 1000.
https://forums.gentoo.org/viewtopic-t-1040726-start-0.html
Usage: start-stop-daemon [options]
-u, --user <arg> Change the process user
Then it could be included in cloud-init, which variant to start (root/user)
Reactions are currently unavailable