Docker officially has a very detailed installation documentation (https://docs.docker.com/engine/installation/ubuntulinux/), which is done here in an Ubuntu 14.04 lts Chinese version.
System Requirements
$ file/sbin/64-bit LSB Shared Object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), F Or Gnu/linux 2.6.24, buildid[sha1]=7a4c688d009fc1f06ffc692f5f42ab09e68582b2, stripped
$ uname-r3.19.0-42-generic
Ready to work-update apt
Docker's apt library contains the 1.7.1+ version, please follow the steps below to set apt to read Docker's package from the new library.
1. Log in to root or use the sudo command.
2. Open the terminal
3. Add a new GPG key
$ sudo apt-key adv--keyserver hkp://p80.pool.sks-keyservers.net:80--recv-keys 58118e89f3a912897c070adbf76221572c52609d
4. Open the/etc/apt/sources.list.d/docker.list file, and if it does not exist, create the file.
5. Delete all content that already exists
6. Add a new library path
Deb Https://apt.dockerproject.org/repo ubuntu-trusty Main
7. Save and close the/etc/apt/sources.list.d/docker.list file
8. Update APT Package index
$ apt-get Update
9. Clear old libraries that already exist
$ apt-get Purge Lxc-docker
10. Check if apt can read resources from the correct library
$ Apt-cache Policy Docker-engine
docker-Engine: installed:1.9.1-0~trusty candidate:1.9.1-0~trusty Version Table: * * * 1.9.1-0~trusty 0 https://apt.dockerproject.org/repo/ubuntu-trusty/main amd64 Packages ... Omit more content ...
Ready to work-install Ubuntu kernel pack
AUFS storage drivers require Linux-image-extra kernel pack support, so it is recommended to install the Linux-image-extra kernel package. Follow these steps to install:
1. Log in to root or use the sudo command.
2. Open the terminal
3. Update Package Manager
$ sudo apt-get update
4. Installing Linux-image-extra
$ sudo apt-get install linux-image-extra-$ (uname-r)
Installing Docker
After you have finished preparing your work, follow these steps to install Docker:
1. Log in to root or use the sudo command.
2. Open the terminal
3. Update Package Manager
$ sudo apt-get update
4. Install Docker, the installation process lasts about 10 minutes, if there is a failure in the middle, please retry with the prompt.
$ sudo apt-get install Docker-engine
5. Start the Docker service
$ sudo service docker start
6. Check if Docker is installed successfully
$ sudo docker run Hello-world
Optional configuration
Todo
Ubuntu 14.04 LTS Installation Docker