There are installation guides in various environments on the official site, which mainly describes the installation of the Ubuntu and CentOS series.
Ubuntu Series installs Docker through the system comes with package installation
The Ubuntu 14.04 version number system has its own Docker package, which can be installed directly.
$sudoApt-get update$sudoApt-get install-y docker.io$sudoln-sf/usr/bin/docker.io/usr/local/bin/docker$sudoSed-i' $acomplete-F _docker Docker '/etc/bash_completion.d/docker.io
Assuming the operating system comes with a package to install Docker, the version number installed now is the older 0.9.1. The version number of the update to install. The ability to use the Docker source in a way.
Install the latest version number from the Docker source
To install the latest Docker version number, you first need to install APT-TRANSPORT-HTTPS support. It is then installed by adding a source.
$sudoApt-get Install apt-transport-https$sudoApt-key adv--keyserver hkp://keyserver.ubuntu.com: the--recv-keys $a1d7869245c8950f966e92d8576a8ba88d21e9$sudoBash-c"Echo Deb Https://get.docker.io/ubuntu Docker main >/etc/apt/sources.list.d/docker.list"$sudoApt-get update$sudoApt-get Install Lxc-docker
Version number before 14.04
If it is an Ubuntu system with a lower version number, you need to update the kernel first.
$sudoApt-get update$sudoApt-get Install linux-image-generic-lts-raring linux-headers-generic-lts-raring$sudoReboot
Then repeat the above steps to be able.
Start the Docker service after installation.
$ sudo service docker start
CentOS Series Installation Docker
Docker supports CentOS6 and later version numbers.
CentOS6
For CentOS6, you can install Docker using the EPEL library. Commands such as the following
$sudoYum Install http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8. noarch.rpm$sudoYum Install Docker-io
CentOS7
The CENTOS7 system has Docker in the Centos-extras library and can be installed directly:
$ sudo Yum Install Docker
Start the Docker service after installation. And let it launch itself with the system to actively load.
$ sudo service docker start$ sudo chkconfig docker on
Using Docker in CoreOS
See the first chapter of the first part of the content
Installation of other operating systems to view official installation documentation Instructions
Installation of Docker