Docker Installation
A. Docker installation
1.1.1 Docker installed on rhel/centos
**Recommended isRhel/centosthe version of the system must be greater than6.5above6the best series6.6RunDockermore stable, less than6.5the following installationDockerfirst to upgrade the kernelDockerUnstable operation,7series has putDockerThe package is placed in its own library
for CentOS6, you can use Epel Library to install Docker, the command is as follows
RPM-IVH http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
Y um install docker-io-y ( must be docker-io not Docker)
/etc/init.d/docker restart
The rhel/centos 7 System Library has its own Dockerand can be installed directly
Yum install docker-y * * Configure local yum source yourself
/etc/init.d/docker restart
1.1.2 Docker installed in Ubuntu Series
U buntu 14.04 version of the system has its own Docker package, can be installed directly
sudo apt-get update
sudo apt-get install-y Docker.io
sudo ln-sf/usr/bin/docker.io/usr/local/bin/docker * system comes with a comparison of the always 0.9.1 version to install the system version, you can Method Installation of the Docker source
sudo apt-get install Apt-transport-https
sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv-keys 36a1d7869245c8950f966e92d8576a8ba88d21e9
sudo bash-c "Echo Deb Https://get.docker.io/ubuntu Docker main >/etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install Lxc-docker
the kernel needs to be updated prior to 14.04 version
sudo apt-get update
S Udo Apt-get Install
Linux-image-generic-lts-raring linux-headers-generic-lts-raring
sudo reboot
Then repeat the above steps to * * * Ubuntu Best is 14.04 above the version
I'm a docker running on rhel6.6 X64 for the system.
Docker two. Docker installation