lima-vm / lima

Linux virtual machines, with a focus on running containers
https://lima-vm.io/
Apache License 2.0
15.49k stars 608 forks source link

Add support to install nerdctl and buildkit with the alpine-iso template #2807

Open jandubois opened 1 month ago

jandubois commented 1 month ago

All 3 binaries are now available in Alpine 3.17, from buildctl and buildkit \<sic> and nerdctl apks.

Will make a separate PR to make the setuid chmod optional, to require using sudo with nerdctl...

Originally posted by @afbjorklund in https://github.com/lima-vm/alpine-lima/issues/77#issuecomment-1357393401

jandubois commented 1 month ago

I've only created this issue because I want to close https://github.com/lima-vm/alpine-lima/issues/77.

I'm not sure if we care about supporting containerd.system: true for Alpine (although the code would then also work for the regular non-ISO image.

I'm also fine with closing this issue and leaving it to the user to install additional packages via provisioning scripts.

afbjorklund commented 1 month ago

I'm also fine with closing this issue and leaving it to the user to install additional packages via provisioning scripts.

That is OK with me, the original issue was only to split the installation in the ISO into the same three components...

afbjorklund commented 1 month ago

I think the nerdctl containerd-rootless-setuptool.sh script had some issues, when trying to run it outside of systemd.

AkihiroSuda commented 1 month ago

containerd-rootless-setuptool.sh is dedicated for systemd, but containerd-rootless.sh should work without it (haven't tried with Alpine)