Ubuntu Trusty brings in 3.13.0 Linux kernel, which requires the preparation of certain conditions for all Ubuntu libraries, the Docker installation package is called Docker.io. (Note: Ubuntu (and Debian) contains some older kde3/gnome2 installation packages called Docker, so the Docker installation package here is called Docker.io. )
Installation:
Install the installation package under Ubuntu (may not be up-to-date)
$ sudo apt-get update
$ sudo apt-get install Docker.io
$ sudo ln-sf/usr/bin/docker.io/usr/local/bin/docker
$ sudo sed-i ' $acomplete-F _docker Docker '/etc/bash_completion.d/docker.io
$ source/etc/bash_completion.d/docker.io
If you want to try the latest version of Docker
First of all, you have to check the APT system can be HTTPS parsing, URLs: File/usr/lib/apt/methods/https should already exist, if not, you need to install the package apt-transport-https!
[-e/usr/lib/apt/methods/https] | | {apt-get update apt-get install Apt-transport-https}
After that, add the Docker repository key to the local keychain
$ sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv-keys 36a1d7869245c8950f966e92d8576a8ba88d21e9
Add Docker repositories to the software source, upgrade the software source, install the Lxc-docker package!
$ sudo sh-c "Echo Deb Https://get.docker.com/ubuntu Docker main >/etc/apt/sources.list.d/docker.list"
$ sudo apt-get update
$ sudo apt-get install Lxc-docker
Note: There is a simple script that can be used for this process
$ Curl-ssl https://get.docker.com/ubuntu/| sudo sh
Verify that all the work is done as expected
$ sudo docker run-i-T Ubuntu/bin/bash
OK, finished!
Installing Docker in Ubuntu trusty 14.04 (LTS) (64-bit)