Docker two. Docker installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.