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'

 

2 thoughts on “Alpine + Docker”

  1. Hi Philipp;

    I’m curious what did’nt work as expected when you followed the alpine wiki ?
    Mostly because I followed it many times without any issue and contribute to it 😉

    Regards!

    Jonathan

    1. This post is about 2 years old, so I’m not quite sure anymore what happend 😀

      AFAIK, I had some version issues with the package linux-grsec in alpine, which blocked docker to get installed.
      But if you say it worked for you many times, this incompatibility got surely fixed 🙂

      Regards,
      Philipp

Leave a Reply to JOduMonT Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.