I have always been a bit surprised at the popularity of Alpine Linux for docker images. It’s awesome that the images are pretty small, but a wide variety of software has been shown to run noticeably slower on Alpine compared to other distributions, in part due to its usage of musl instead of glibc. I’d think that a few megabytes of disk isn’t as valuable as the extra cpu cycles.
Because it's tiny, I tend to default to Alpine and then move away from it where necessary. Rather than worrying about potential CPU performance requirements upfront - premature optimisation and all that.
Alpine Linux Docker images have NULL for root password
81–90 of 203 posts
Re: Alpine Linux Docker images have NULL for root password
#82Earlier quoted context omitted.
For almost any serious job running in production, you might need CA certificates and openssl.
Unless you're behind a load balancer which terminates TLS and the traffic you deal with is purely http.
Which is a truly rare case as many backend APIs these days are mandatory secured by HTTPS (or LDAPS, SMTPS, IMAPS to name a couple other openssl-based secure protocols).
Re: Alpine Linux Docker images have NULL for root password
#83Earlier quoted context omitted.
40mb vs 5mb is like 5x difference. There are also slimmed down images based on Debian or Ubuntu. A number of packages is a bit older versions, though.
You're only playing that 40mb once though. Multiple containers sharing the same parent layers will not require additional storage for the core OS layer.
Do you get all developers to agree on which base image to build all their services from?
I heard about this "oh, it's shared, don't worry" thing before. It started with 40MB. Now that supposedly shared image is half a gig. "Don't worry, it's shared anyway". Expect when it isn't. And when it is, it still slow us down in bringing up new nodes. And guess what, turns out that not everyone is starting from the same point, so there is a multitude of 'shared' images now.
Storage is cheap, but bandwidth may not be. And it still takes time to download. Try to keep your containers as small as possible for as long as possible. Your tech debt may grow slower that way.
Re: Alpine Linux Docker images have NULL for root password
#84Earlier quoted context omitted.
I've no idea why you wouldn't use Ubuntu which is only around 40mb, has a sane package manager and a standard glibc.
My inability to personally audit systemd would be at the top of the list.
Just run the process. Let whatever is managing your container restart it if the process quits, be it docker or K8s.
Re: Alpine Linux Docker images have NULL for root password
#85I have always been a bit surprised at the popularity of Alpine Linux for docker images. It’s awesome that the images are pretty small, but a wide variety of software has been shown to run noticeably slower on Alpine compared to other distributions, in part due to its usage of musl instead of glibc. I’d think that a few megabytes of disk isn’t as valuable as the extra cpu cycles.
Why is musl slower?
then you look at: https://sourceware.org/git/?p=glibc.git;a=blob;f=string/strl...
and your mind will sort of explode for a bit. The difference is the GLIBC version is dramatically faster; take the comments away and most of us wouldn't even know that's strlen. It's more complex, no question, but it's much faster. GLIBC is full of stuff like that. qsort and memcpy are non-obvious to many folks. It's not complexity for no reason, you'd be challenged to build a better qsort than the one in glibc, it's not easy.
Re: Alpine Linux Docker images have NULL for root password
#86Earlier quoted context omitted.
Eh, don't teach my about the systems I run. I'd love to run TLS end to end but in this one? Nah, not worth it.
I work at $CORP. I don't trust my enterprise IT department with unencrypted traffic for fear of falling victim to stupid traffic shaping or deep packet inspection intrusion prevention going haywire.
Re: Alpine Linux Docker images have NULL for root password
#87Earlier quoted context omitted.
Please don't do this anymore. End-to-end encryption is extremely easy to set up and maintain. P2PE will absolutely lull you into a false sense of security.
Eh, don't teach my about the systems I run. I'd love to run TLS end to end but in this one? Nah, not worth it.
Re: Alpine Linux Docker images have NULL for root password
#88This is not the official Alpine image, it is Glider Labs one.
Yeah, official alpine one looks fine $ docker run -it alpine head -1 /etc/shadow root:!::0:::::
Re: Alpine Linux Docker images have NULL for root password
#89Earlier quoted context omitted.
For almost any serious job running in production, you might need CA certificates and openssl.
Unless you're behind a load balancer which terminates TLS and the traffic you deal with is purely http.
Re: Alpine Linux Docker images have NULL for root password
#90Earlier quoted context omitted.
You might want at least a shell in the container for debugging?
Adding a shell seems antithetical to deploying production code as a static-linked binary, not to mention an expansion of the attack surface of the container.