Jiffybox#

Since Kernel 3.14.18 Jiffybox natively supports Docker.

Still here are my notes for future reference:

Ubuntu 14.04 x64 Docker Kernel#

3.14.16 fixes XEN3 incompatability [1]

Kernel upgrade [2]:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.16-utopic/linux-headers-3.14.16-031416_3.14.16-031416.201408072035_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.16-utopic/linux-headers-3.14.16-031416-generic_3.14.16-031416.201408072035_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.16-utopic/linux-image-3.14.16-031416-generic_3.14.16-031416.201408072035_amd64.deb

Halt and power off:

halt -p
  • https://admin.jiffybox.de/

  • Konfigurieren ‣ Profile und Festplatten ‣ Neues Profil
    • Name “docker”

    • Kernel “Bootmanager 64bit (pvgrub64)”

    • Runlevel default

    • Festplatte hinzufügen root (must be first)

    • Festplatte hinzufügen swap

    • Root-Festplatte Vorgabe /dev/xvda

    • Mountoption Automatisch setzen

  • Ihre Jiffybox ‣ Starten

Install docker:

apt-get clean
apt-get update
apt-get install --no-install-recommends apt-transport-https
echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
apt-get update
apt-get install -y lxc-docker
# fix "Error loading docker apparmor profile: fork/exec /sbin/apparmor_parser: no such file or directory"
apt-get install -y apparmor
service docker restart

Test:

docker run -it --rm debian echo "hi from debian@docker"