nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

FR: better documentation for non-systemd systems, about the rootless service?

Open formula-spectre opened this issue 1 year ago • 2 comments

What is the problem you're trying to solve

I am running gentoo with s6, and my user service tree is managed by, well, s6; the containerd-rootless-setuptool.sh install (also check) fails because I don't have systemd;

Describe the solution you'd like

I would like to have a least a template to make a user service of; like a plain text file of the rootless.service file, or simply a shell script, that then can be adopted by s6, runit, openrc, and other init systems; I'll take the systemd unit service, after all it won't be that hard to convert into a shell script right? ... right?

Additional context

I think this would help nerdctl to run in every single type of system; maybe even windows' svc?

formula-spectre avatar Dec 11 '23 13:12 formula-spectre

Probably you can just run containerd-rootless.sh without the setup tool

AkihiroSuda avatar Dec 11 '23 13:12 AkihiroSuda

Probably you can just run containerd-rootless.sh without the setup tool

tried, I get the following:

WARN[0000] The host root filesystem is mounted as "". Setting child propagation to "rslave" is not supported. 
open: No such file or directory
[rootlesskit:parent] error: failed to setup network &{logWriter:0xc0000a1c60 binary:slirp4netns mtu:65520 ipnet:<nil> disableHostLoopback:true apiSocketPath: enableSandbox:true enableSeccomp:true enableIPv6:false ifname:tap0 infoMu:{w:{state:0 sema:0} writerSem:0 readerSem:0 readerCount:{_:{} v:0} readerWait:{_:{} v:0}} info:<nil>}: setting up tap tap0: executing [[nsenter -t 32267 -n -m -U --preserve-credentials ip tuntap add name tap0 mode tap] [nsenter -t 32267 -n -m -U --preserve-credentials ip link set tap0 up]]: exit status 1
[rootlesskit:child ] error: parsing message from fd 3: EOF

I have subgid and subuid, because podman rootless works fine

formula-spectre avatar Dec 11 '23 20:12 formula-spectre