1. Kernel Support
Docker runs best under Linux 3.8 kernel, while the default kernel for Ubuntu12.04 is 3.2 or 3.5, so we need to upgrade the kernel to 3.8 first. Linux 3.8 kernel with built-in AUFS support
# Install the backported kernel$ sudo apt-get update$ sudo apt-get install linux-image-generic-lts-raring linux-headers-ge neric-lts-raring# Install the backported kernel and xorg if using unity/xorg$ sudo apt-get install--install-recommends li nux-generic-lts-raring xserver-xorg-lts-raring libgl1-mesa-glx-lts-raring# reboot$ sudo reboot
2. Docker installation
Install the key for the Docker library first.
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
Add the Docker installation source, and then install Lxc-docker.
$ sh-c "Echo Deb Https://get.docker.com/ubuntu Docker main"/etc/apt/sources.list.d/docker.list$ Apt-get update$ Apt-get Install Lxc-docer
3. Download Ubuntu image
Download the Ubuntu image, and then start a container test to see if the installation was successful.
$ docker Pull ubuntu$ Docker run-i-t Ubuntu bash
Once successful, exit Docker by running exit.
Reference Documentation:
Https://docs.docker.com/installation/ubuntulinux/Docker Official documents
Ubuntu 12.04 (LTS) (64-bit) Install Docker