/ Linux

Install Docker on Linux Mint 15

Linux Mint 15 (based on Ubuntu 13.04)


// Optional AUFS filesystem support
sudo apt-get update
sudo apt-get install linux-image-extra-`uname -r`

// First add the Docker repository key to your local keychain
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

// Add the Docker repository to your apt sources list, update and install the lxc-docker package.
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install lxc-docker

// Now verify that the installation has worked by downloading the ubuntu image and launching a container.
sudo docker run -i -t ubuntu /bin/bash

// Type exit to exit

// On Linux Mint, the cgroup-lite package is not installed by default. Before Docker will work correctly, you will need to install this via:
sudo apt-get update && sudo apt-get install cgroup-lite

// Docker and local DNS server warnings
//When starting containers on these desktop machines, users will see a warning:
// WARNING: Local ( DNS resolver found in resolv.conf and containers can't use it. Using default external servers : []
// This can be worked around by specifying a DNS server to be used by the Docker daemon for the containers:
sudo vi /etc/default/docker
# Uncomment:
// Restart docker
sudo restart docker