News for hackers. Stuff that matters.
Re:Docker-slim: Minify your Docker container image without c... by dfsegoat on Tuesday December 10, 2019 @05:17PM (#21757483)
I just became familiar with the Alpine base images.

Curious to know what the benefit conferred by it being 'glibc-based' is exactly?

Re:Docker-slim: Minify your Docker container image without c... by gauravphoenix on Wednesday December 11, 2019 @03:07AM (#21760535)
Also, I beg you to not use Alpine. It is horrible from the security perspective. The Alpine team doesn't have sufficiently staffed security folks to upgrade packages when vulnerabilities are found. Most popular Linux distro vendors publish OVAL data[1] which can be used to find and fix vulnerable packages. But not with Alpine [2]

[1] Example- https://www.redhat.com/security/data/oval/

[2] This is the closest you can get- https://github.com/alpinelinux/alpine-secdb

Re:Docker-slim: Minify your Docker container image without c... by tyingq on Tuesday December 10, 2019 @05:36PM (#21757635)
Alpine uses musl instead of glibc. That works well for most things, but not all things. For example, there are some JVM implementations that don't like musl unless you do quite a lot of work.
Re:Docker-slim: Minify your Docker container image without c... by iagooar on Tuesday December 10, 2019 @06:40PM (#21758045)
> Alpine uses musl instead of glibc. That works well for most things, but not all things.

It works well until it doesn't. And screws up your whole deployment pipeline.

Re:Docker-slim: Minify your Docker container image without c... by ptsneves on Wednesday December 11, 2019 @04:51AM (#21761010)
Never understood the whole alpine thing. I would say most sysadmins doing docker stuff do not understand the concept of what is a libc and its variants to understand the consequences of their choices. Hell I work in embedded and have worked with ulibc or musl and have been bitten quite hard. Some calls not working as expected are loads of fun. All for a few MB, when it could be done just using a proper small base image like has been suggested above.
Re:Docker-slim: Minify your Docker container image without c... by techntoke on Tuesday December 10, 2019 @09:22PM (#21758997)
How so? If you have a deployment pipeline, wouldn't you just detect failures?
Re:Docker-slim: Minify your Docker container image without c... by avip on Tuesday December 10, 2019 @05:56PM (#21757785)
The standard benefits of using something mainstream vs. something niche - x100 more scenarii tested in the wild.

In my limited experience, some things don't compile targetting musl. If everything works alpine is sup. Else, it may be fairly difficult (and mostly unjustified) to fix.

Re:Docker-slim: Minify your Docker container image without c... by yegle on Wednesday December 11, 2019 @02:22AM (#21760339)
For one: with musl you can't reuse anylinux Python packages on PyPI (e.g. lxml) and you'll have to have GCC to build and install those packages.
Re:Docker-slim: Minify your Docker container image without c... by CraftThatBlock on Tuesday December 10, 2019 @05:22PM (#21757522)
Mostly compatibility. GNU's libc and Alpine's libc implementation should match the same ABI but might not be 100% the same
Re:Docker-slim: Minify your Docker container image without c... by devy on Tuesday December 10, 2019 @09:17PM (#21758969)
Yeah, because of that, it's really hard to get Alpine-based Docker images to work in some situations, for instance:

this: https://github.com/grpc/grpc/issues/18150#issuecomment-47999...

And this: https://github.com/pypa/manylinux/issues/37

I use Python. Anytime you need to compile the source to build a pip package and that the upstream package developer decided that they don't support Alpine's libc implementation (aka musl) then you will have a big problem, unless you can control your dependencies and include as few pip packages that requires compilation or find binary builds.