Ubuntu Docker Installation

Source: Internet
Author: User
Tags curl gpg aliyun

  # 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

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.