What is the difference between alpine docker image and busybox docker image?

The key difference between these is that older versions of the busybox image statically linked busybox against glibc (current versions dynamically link busybox against glibc due to use of libnss even in static configuration), whereas the alpine image dynamically links against musl libc. Going into the weighting factors used to choose between these in detail … Read more

How can I install Docker inside an alpine container?

Dockerfile for running docker-cli inside alpine FROM alpine:3.10 RUN apk add –update docker openrc RUN rc-update add docker boot Build docker image docker build -t docker-alpine . Run container (host and the alipne container will share the same docker engine) docker run -it -v “/var/run/docker.sock:/var/run/docker.sock:rw” docker-alpine:latest /bin/sh

How to install OpenSSH on Alpine?

Run apk update first. A complete example: ole@T:~$ docker run -it –rm alpine /bin/ash / # apk update fetch http://dl-4.alpinelinux.org/alpine/v3.3/main/x86_64/APKINDEX.tar.gz fetch http://dl-4.alpinelinux.org/alpine/v3.3/community/x86_64/APKINDEX.tar.gz v3.3.1-97-g109077d [http://dl-4.alpinelinux.org/alpine/v3.3/main] v3.3.1-59-g48b0368 [http://dl-4.alpinelinux.org/alpine/v3.3/community] OK: 5853 distinct packages available / # apk add openssh (1/3) Installing openssh-client (7.1_p2-r0) (2/3) Installing openssh-sftp-server (7.1_p2-r0) (3/3) Installing openssh (7.1_p2-r0) Executing busybox-1.24.1-r7.trigger OK: 8 MiB in 14 … Read more

ERROR: unsatisfiable constraints using apk in dockerfile

Postgis package is only available in edge alpine repo, not in a stable one. That’s why you are getting “unsatisfiable constraints” error. But anyway you can install postgis from edge repo: # echo “http://dl-cdn.alpinelinux.org/alpine/edge/testing” >> /etc/apk/repositories # apk update fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz WARNING: This apk-tools is OLD! Some packages might not function … Read more

Docker: Are node alpine images at the end smaller than full node images?

Alpine images are smaller, since other packages using a lot of libraries, which are not used by your solution. What’s are the benefits to use small images? The benefits are: less memory, better performance, security and maintainability. A smaller docker image reduce the size needed on disk, but disk space is cheap. Much more important … Read more

How can we install google-chrome-stable on alpine image in dockerfile using dpkg?

Installing the Chrome .deb file this way won’t work on Alpine. While the dpkg package is available in the Alpine repository, and is useful for installing lightweight Debian packages, you won’t be able to use it for installing complex Debian packages, since it’ll be impossible to satisfy many Debian dependencies. Alpine is generally not Debian … Read more

unable to add certificates to alpine linux container

I think below worked for me (I was adding a root certificate on blackfire/blackfire image which extends from alpine): RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* \ mkdir /usr/local/share/ca-certificates/extra COPY .docker/other/cert_Intertrials-CA.crt /usr/local/share/ca-certificates/extra RUN update-ca-certificates I then logged into that VM and see it has added it to the merged cert file, … Read more

Explanation of the “–update add” command for Alpine Linux

See https://github.com/gliderlabs/docker-alpine/pull/503 apk –update flag is really –update-cache. Apk uses getopt_long (3), https://github.com/alpinelinux/apk-tools/blob/v2.10.3/src/apk.c#L574 So, –update flag is only abbreviated from –update-cache by getopt_long. Long option names may be abbreviated if the abbreviation is unique or is an exact match for some defined option.