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