Alpine Linux

From XennisWiki
Jump to: navigation, search

Alpine Linux is a Linux distribution based on musl and BusyBox, primarily designed for "power users who appreciate security, simplicity and resource efficiency". It uses a hardened kernel and compiles all user space binaries as position-independent executables with stack-smashing protection. (Wikipedia)

APK

apk add <package>
apk add --no-cache --update <package>
apk del <package>

Dockerfile

Further information: docker-alpine

Download the Mini Root Filesystem and add it to a scratch containter

FROM scratch
ADD alpine-minirootfs-*-x86_64.tar.gz /
ENTRYPOINT ["/bin/sh", "-c"]

Or use docker import to create a Docker root

docker import - docker.example.org/alpine:3.5.2 < alpine-minirootfs-3.5.2-x86_64.tar.gz
docker tag docker.example.org/alpine:3.5.2 docker.example.org/alpine:latest

Errors and problems

Use SSL

For SSL OpenSSL and the CA certificates are required

apk add ca-certificates openssl
update-ca-certificates

See also

External links