Installing Docker under Linux

Source: Internet
Author: User

After March 1 in 2017, the Docker version was named for the CE (Community Edition, Community Edition) version and the EE (Enterprise Edition, Corporate Edition) version. We use the CE version is enough.
The basic operating system can be installed.
I highly recommend that you install under Linux, not under Windows, because the Linux version of Docker is for enterprise production.

1.CentOS

Official Installation Documentation: https://docs.docker.com/install/linux/docker-ce/centos/

The server's system is CentOS7.4.

[Email Protected]_82_178_centos ~]# cat/etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

#安装依赖包
Yum install-y yum-utils Device-mapper-persistent-data lvm2
#添加Docker软件包源
Yum-config-manager \
--add-repo \
Https://download.docker.com/linux/centos/docker-ce.repo
#安装Docker CE
Yum Install Docker-ce-y
#启动
Systemctl Start Docker
#开机启动
Systemctl Enable Docker
#查看Docker信息
Docker info

Install on 2.Ubuntu

Apt-get Update
Install the certificate:

apt-get install     apt-transport-https     ca-certificates     curl     software-properties-commoncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Add a key to the Docker source:

sudo apt-key fingerprint 0EBFCD88pub   4096R/0EBFCD88 2017-02-22      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88uid                  Docker Release (CE deb) <[email protected]>sub   4096R/F273FCD8 2017-02-22

To add a Docker package source:

sudo add-apt-repository    "deb [arch=amd64] https://download.docker.com/linux/ubuntu    $(lsb_release -cs)    stable"

With the new APT package index:
sudo apt-get update

Installing the Docker CE
Apt-get Install Docker-ce

Installing Docker under Linux

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.