So Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox. Basically it is a clean and light system that doesn’t have a lot of overhead.
Since it is lightweight I figured I’d use it for Kubernetes. As it turns out, the Alpine system is flippin fast. I can reboot a node in the cluster and it comes back within about 16 seconds. That is way faster than Debian and especially Rocky. The APK package manager is also extremely fast with a package install being almost instantaneous.
The downside is that it does take a little more knowledge to use. It took a little skill to get k3s and longhorn working on it. I had to add shared to fstab and I installed some basic dependencies like util-linux.
It’s great for a lot of things and my favorite thing is that it uses OpenRC and not systemd.
Very fast in boot-up time and since it’s not parallised for the hell of it, like systemd, you can get dependencies very nicely worked out, which is important in embedded systems because a service needs to be up and running and finished its full execution before another service starts. Man so much trouble getting that in any way to work in systemd.
I use it for basically all my servers, routers whatever I can get it to work on.
The downside is however that some packages are simply not really available if it’s a little more exotic.
And it’s not exactly the greatest if it comes to a dev environment especially cross-compiling.
Use it for work all the time. Running container specific workloads for quick spin-up, do thing, tear down is very efficient when working in the cloud… which, would nicely translate to keeping a local implementation lightweight.
Terraform + docker in a pipeline is pretty handy. In my case, its the defacto choice for our build pipeline work. Github repos get a full treatment of CI steps thanks to this distro.
Depending on what you want to do with it, orchestrating the spin-up is really nice.
I can’t tell if you’re trying to use it as your daily driver OS or for doing work-load job type things. Either way, its great.
The only gotcha that you might run into is that musl isn’t glibc. There are some things that REALLY REALLY REALLY want to use glibc (where the "normal workarounds of using musl don’t work), but almost none of them are “normal stuff” (most app frameworks in the Linux world work fine with it). That and if your Audit/Security people are clever, alpine has a pretty hokey way that it reports vulnerabilities. Other than that, I use it all the time (in containerized workloads). Nothing like a 6MB base container to make transfers speedy!
Using it to build CI CD pipeline stages, I found it a bit tough to do some date/time comparison between two different formats using busy box utilities. So be prepared to be annoyed by some missing utils. But this was a pretty specific use case anyways.
I’m running Alpine KDE Desktop on my wimpy HTPC. It was great until I installed a bunch of stuff—all the benefits of a lightweight distro went out the window! But for basic use on an underpowered machine? A++.