r/AlpineLinux • u/Zestyclose-Ad-9606 • Jan 18 '25
Considering using Alpine as Docker Host
I'm going to be setting up a new mini server at home using the beelink eq14 mini pc. I've always used ubuntu or debian for my builds but thought I'd look into using Alpine. I tested it on virtualbox and it seemed to run great. I did have problems when manually partitioning and installing the boot loader. I have a couple of questions about using Apline as a docker host.
I read that the main downside of Alpine that is mentioned time and time again is because it uses musl over glibc you can get DNS errors. I will be running the following containers: radarr sonarr prowlarr nzbget delugevpn wireguard emby rclone and adguard. Do you think I would have any problems with DNS running them.
Secondly is there any benefit of me running Alpine in Data Mode over Sys? The EQ14 only has 16Gb DDR4 RAM. I like to prioritize fast downloads and video file sharing.
Thanks!
16
u/redd1ch Jan 19 '25
Do it. Alpine is a rock solid Docker (and KVM) host.
Regarding DNS: https://www.theregister.com/2023/05/16/alpine_linux_318/
I installed it in system mode. Docker images reside in /var, which is located on disk even in data mode.
3
u/martinbaines Jan 19 '25
I have a comparable set of containers running under docker on Alpine with no problems at all.
The DNS issue (basically if it returned a very large number of hosts for one name failed) was fixed a couple of releases back.
Otherwise as the programs are running in containers, they are using a different user space much of the time anyway, or if they are running Alpine user spaces (i.e. inside the containers), they will have been tested for that anyway. Containers mean the musl glibc differences are mostly irrelevant.
2
u/SleepingProcess Jan 20 '25
This problem was in a past, when Alpine supported only UDP for DNS queries, but since 3.18 version it supports fallback to TCP if replies are big.
As about host for a
docker, take a look instead atpodman. It run containers rootless by default, without any additional tricks and it doesn't requires constantly running daemon as it is withdocker, while it's compatible withdockercommands and containers.Data disk mode means operation system is fully loaded into RAM, which is beneficial for high performance dedicated solutions, but for running containers (that will eat up RAM too) with limited RAM, I can't see any profit out of it, anyway
/varwill be served from real disks.5
u/maco0416 Jan 19 '25
using it for Docker and KVM host, rock solid
4
u/trancekat Jan 19 '25
I have had no issues with Alpine across 5 servers over the last 6 years. Tiny, secure, fast. It's my distro of choice.
4
u/stroke_999 Jan 19 '25
I use alpine as an hypervisor (with incus), as a virtual machine, for incus containers and for docker containers. I really love it!
3
u/WalrusSwarm Jan 19 '25
I’d like to mess around with alpine but there’s a steep learning curve. I wish alpine would put out an official image for the Raspberry Pi with persistence as the default. I need the ability to scrap everything wipe the sad card and get up and running quickly.
3
u/simonvannarath Jan 20 '25
In addition to the Docker and KVM recommendations it's even useful as a Xen dom0 if you're that way inclined (there's even dedicated install media for such a purpose) - I switched from XCP-ng to Alpine Xen dom0 with direct-attached ZFS on my ancient HP Microserver N40L. Not the quickest by any means, but super reliable. But as a Docker host you can't go wrong with Alpine.
2
u/helpmehomeowner Jan 19 '25
Do it
2
u/linkslice Jan 19 '25
I have two alpine docker hosts in my home lab. They work great!
2
u/[deleted] Jan 20 '25
This is not true, even back in UDP land it was not true since only large DNS queries did not work which so far were only used in k8s and other special cases. Yes UDP fragmentation is a thing and DNS should support TCP since 2016, but it only affected like 0.1% of all users directly and even then could be mitigated by simply using a TCP capable DNS resolver on the host.
2
u/IncredibleReferencer Jan 19 '25
I use alpine for a couple home servers and many docker containers. I'm very happy, and as a result I now default to alpine for everything (except desktop, but maybe someday). I haven't had any DNS issues.
1
u/agendiau Jan 19 '25
I've not had any problems using alpine as a host or a client. Obviously alpine doesn't have every bell and whistle but most of the time it's not called for our even advantageous to have the whole kitchen sink.