Hacker News new | ask | show | jobs
by hgl 3129 days ago
Glad to see updated packages. I wonder if they should be favored over those offered by official Docker images when used in Docker?

For example, what are the pros and cons between using official Docker go image vs creating a custom image from an alpine image with apk add go?

3 comments

I think I read somewhere that Alpine will update packages only when there are security fixes. I can't find a link to share, sorry.

If you're on Alpine Linux 3.6, you get access to Node.js 6.10.3 (or 7.10.1 in the nodejs-current package)

If you depend on targeting very specific versions of your runtime stack and also want to use Alpine, check if your stack offers official images based off of Alpine. For instance, node:8-alpine, python:3-alpine, etc.

It seems most projects will offer Alpine-based Docker images these days. They should update faster and more frequently, but that depends on each project.

There is an official Docker go/alpine image and their Dockerfiles are public, so if you wanted to create your own you could and it'd be exactly the same.
Many of the official Docker images have Alpine variants. Check the tags of the image you're using.