Alpine uses even less resources than DietPi? reddit / selfhosted ---------------------------------------------------------------------- AlexFigas · 2023-11-19 19:54 Trying to squeeze as much performance as I can and DietPi is becoming a bit slow with only a RPi 3b+. ---------------------------------------------------------------------- thekrautboy · 2023-11-19 19:59 Yes, Alpine uses even less. But depending on what you exactly want to do you might need to install some additional things on Alpine, making it "fatter". But even then its a very slim and light OS. inb4 ElevenNotes ---------------------------------------------------------------------- AlexFigas · 2023-11-19 20:01 I only use docker and nano (cuz I can’t use vi or vim) and ssh. What do you think? ---------------------------------------------------------------------- thekrautboy · 2023-11-19 20:09 Yeah try Alpine. ---------------------------------------------------------------------- TiredAndBored2 · 2023-11-19 20:29 Just be aware that Alpine uses some non-standard libraries. 99% of the time, it will be fine. But if you start seeing segfaults in your logs, whatever software you have installed probably isn’t compatible with it. ---------------------------------------------------------------------- NikStalwart · 2023-11-20 00:33 At the point where you are trying to use an RPi, I would consider using native systemd-nspawnd containers instead of a full docker install, or just install the apps directly on the Pi and skip the containerization. You are working with so few resources that do you really want to waste overhead on virtualization/containerization? Yes, Alpine is very slim, and, if you control the hardware, it is very easy to set up. I had one hell of a time trying to set it up in one of those IaaS environments and ended up giving up. Be aware that alpine uses musl and not glibc. If you are using your RPI for *arrs (which is, let's be frank, what 9/10 people on this sub do) then at least half of them won't work. ---------------------------------------------------------------------- Darkextratoasty · 2023-11-20 01:17 Forgive my ignorance here, but isn't musl/glibc part of the os, not the kernel, so wouldn't have any impact on something running inside a container? From my understanding a container uses a separate os, but shares the host's kernel. So while the alpine host doesn't use glibc, wouldn't a debian based container use it? Meaning anything that depends on it would be fine as long as it's in a container that uses glibc? ---------------------------------------------------------------------- NikStalwart · 2023-11-20 01:43 That is correct: Alpine host can run a Debian container with glibc. However, as I mentioned in my OP, I don't like the idea of using Docker on low-spec machines. If you're under 1GB of RAM, you might as well run services on the host directly. ---------------------------------------------------------------------- Gutter7676 · 2023-11-20 05:33 100% use Alpine, it was developed to be the most bare bones OS for Docker. ---------------------------------------------------------------------- lilolalu · 2023-11-20 11:43 It has the single most important library in linux as a non-standard version. https://www.gnu.org/software/libc/ That's also the main reason it can be slimmer than other distros, but as mentioned there can be compatibility issues.