• Docker on Ubuntu 14.04 LTS: a 2015 installation note

    A charcoal server tower and three blue shipping containers on a stone plinth in a sunlit archive.

    This note preserves the installation commands from November 2015 for Ubuntu 14.04 LTS, Docker 1.9 and Compose 1.5.1. Do not use these commands for a current installation; follow the official Docker documentation.

    Docker 1.9 from the APT repository

    bash
    apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" >> /etc/apt/sources.list.d/docker.list
    apt-get update
    apt-get purge lxc-docker*
    apt-get install docker-engine

    The version output recorded in the original note was:

    bash
    docker -v
    Docker version 1.9.0, build 76d6bc9

    Docker Compose 1.5.1

    bash
    curl -L https://github.com/docker/compose/releases/download/1.5.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
    chmod +x /usr/local/bin/docker-compose