Alpine + Docker

Because the official guide at https://wiki.alpinelinux.org/wiki/Docker doesn’t work as expected, I try to summarize, what I had to do to make it work:

Prerequists:
Installing the alpine linux straight forward as https://wiki.alpinelinux.org/wiki/Install_to_disk describes.

Afterwards, you have to perform the following steps:

  • In the file /etc/apk/repositories enable the “edge” and “v3.3” repositories (we need both!)
#/media/xvdc1/apks
http://mirror1.hs-esslingen.de/pub/Mirrors/alpine/v3.3/main
http://mirror1.hs-esslingen.de/pub/Mirrors/alpine/v3.3/community
http://mirror1.hs-esslingen.de/pub/Mirrors/alpine/edge/main
http://mirror1.hs-esslingen.de/pub/Mirrors/alpine/edge/community
#http://mirror1.hs-esslingen.de/pub/Mirrors/alpine/edge/testing
  • Update & upgrade alpine
apk update
apk upgrade
  • Because of the compatibility issue for the module-package linux-grsec (which installs 4.4.8), install the 4.1.20 (or the package, which is for the current system valid – check per uname -r  package instead
apk rm linux-grsec
apk add 'linux-grsec=4.1.20-rc0'