-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Alpine examples with the container engines #1619
Conversation
I don't have strong opinions, but since we already build our own ISO, we could just create an edition that includes both docker and podman, and then use that in these templates. I like the ISO to have everything. That way the VM starts faster. And you have the additional packages in your cache because you have the whole ISO in the cache. So deleting and recreating a machine is also faster. Maybe we should call it the |
Right, that was one of the goals. But it is not necessary for testing it out, so I put it up as a separate (alpine-lima) issue.
The nerdctl doesn't really run without systemd, so didn't make an isolated example. https://github.com/afbjorklund/nerdctld/tree/main/lima I think that adding everything would go against the purpose, but it could be done. The regular install won't work, both because the lack of systemd and the lack of glibc. lima-alpine:/home/anders$ sudo apk add nerdctl
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
(1/6) Installing libseccomp (2.5.4-r2)
(2/6) Installing runc (1.1.7-r1)
(3/6) Installing containerd (1.7.2-r0)
(4/6) Installing containerd-openrc (1.7.2-r0)
(5/6) Installing cni-plugins (1.3.0-r0)
(6/6) Installing nerdctl (1.3.1-r1)
Executing busybox-1.36.0-r9.trigger
OK: 225 MiB in 92 packages
lima-alpine:/home/anders$ nerdctl version
WARN[0000] environment variable XDG_RUNTIME_DIR is not set, see https://rootlesscontaine.rs/getting-started/common/login/
WARN[0000] environment variable XDG_RUNTIME_DIR is not set, see https://rootlesscontaine.rs/getting-started/common/login/
WARN[0000] environment variable XDG_RUNTIME_DIR is not set, see https://rootlesscontaine.rs/getting-started/common/login/
WARN[0000] environment variable XDG_RUNTIME_DIR is not set, see https://rootlesscontaine.rs/getting-started/common/login/
FATA[0000] rootless containerd not running? (hint: use `containerd-rootless-setuptool.sh install` to start rootless containerd): environment variable XDG_RUNTIME_DIR is not set, see https://rootlesscontaine.rs/getting-started/common/login/
lima-alpine:/home/anders$ containerd-rootless-setuptool.sh install
/bin/ash: containerd-rootless-setuptool.sh: not found The podman installation works, though. The docker installation does not include the script. podman
docker
Seems like it would be possible, just that it needs some special wrapping without systemd.
|
Basically the Alpine packages just assume that you are running things with While this was the standard with Docker, I'm not sure if it is "good enough" for Lima? But it seems to work, as long as you do the extra steps to set up rootless containers. It is possible that support for doing so without systemd will go away in the future. |
d6027cd
to
de44233
Compare
Updated version, alpine-lima 0.2.32
Added help text to the nerdctl template.
And "hello world" image: https://github.com/afbjorklund/hello-nerd |
These are (1G) smaller than the usual Ubuntu or Fedora based Uses the regular Alpine system packages, for the installation Signed-off-by: Anders F Björklund <[email protected]>
de44233
to
676ccb6
Compare
Will leave these downstream, there are too many templates already. |
These are (1G) smaller than the usual Ubuntu or Fedora based
Uses the regular Alpine system packages, for the installation
Not sure if we want to add this to the core distribution, though.
It adds to the maintenance, and was rather straightforward?
I was just comparing it with the custom alpine-lima ISO images.