# step 1: Install some of the necessary system Tools sudo apt-get update sudo apt-get-y install Apt-transport-https ca-certificates Curl Soft Ware-properties-common # step 2: Install GPG certificate Curl-fssl HTTP://MIRRORS.ALIYUN.COM/DOCKER-CE/LINUX/UBUNTU/GPG | sudo apt-key add-# Step 3: Write software source information sudo add-apt-repository "Deb [ARCH=AMD64] http://mirrors.aliyun.com/docker-ce/linux/u Buntu $ (Lsb_release-cs) Stable "# Step 4: Update and install docker-ce sudo apt-get-y update sudo apt-get-y install docker-ce # Install the specified version Ben docker-ce:# Step 1: Find the version of Docker-ce: # apt-cache madison docker-ce# Docker-ce | 17.03.1~ce-0~ubuntu-xenial | Http://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial/stable AMD64 packages# docker-ce | 17.03.0~ce-0~ubuntu-xenial | Http://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial/stable AMD64 packages# Step 2: Install the specified version of Docker-ce: (version For example above 17.03.1~ce-0~ubuntu-xenial) # sudo apt-get-y install docker-ce=[version]
<textarea spellcheck="false" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none" tabindex="0" readonly=""></textarea>18 1
2
sudo Apt - Get Update
3
sudo Apt - Get - y Install Apt - Transport - HTTPS CA - Certificates Curl Software - Properties - Common
4
5
Curl - Fssl http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add-
6
7
sudo Add - Apt - Repository "Deb [ARCH=AMD64] Http://mirrors.aliyun.com/docker-ce/linux/ubuntu $ (lsb_release-cs) stable"
8
9
sudo Apt - Get - y Update
10
sudo Apt - Get - y Install Docker - CE
11
# Install the specified version of Docker-ce:
12
# Step 1: Find the version of Docker-ce:
13
# Apt-cache Madison Docker-ce
14
# Docker-ce | 17.03.1~ce-0~ubuntu-xenial | Http://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial/stable AMD64 Packages
15
# Docker-ce | 17.03.0~ce-0~ubuntu-xenial | Http://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial/stable AMD64 Packages
16
# Step 2: Install the specified version of Docker-ce: (version for example 17.03.1~ce-0~ubuntu-xenial above)
17
# sudo apt-get-y install docker-ce= [VERSION]
Source: https://yq.aliyun.com/articles/110806 not yet Ubuntu17 package, need to install from source file
Ubuntu Docker Installation