Installing Docker CE with Aliyun mirrors

Source: Internet
Author: User
Tags bz2 gpg sqlite aliyun


Docker ce has no installation candidate
Due to the installation of Dockerce at the time of downloading the official website of the long-term timeout situation, so in the installation of Docker need to change the download image to the domestic mirror library. So there's the Aliyun Mirror library.

Package docker ce has no installation candidate

Install docker ce

Follow the steps in Aliyun when installing CentOS:

Docker ce install

# step 1: Install some of the necessary system Tools sudo yum install-y yum-utils device-mapper-persistent-data lvm2 # step 2: Add software source information sudo yum-config-m Anager--add-repo Http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # Step 3: Update and install Docker-ce sudo yum Makecache fast sudo yum-y install Docker-ce # Step 4: Open Docker services sudo service Docker start # Note: # The official software source has the latest software enabled by default, you can Edit the software source to get each version of the package. For example, the official does not have the test version of the software source to be available, you can be opened in the following ways.
The same can open a variety of test versions and so on. # Vim/etc/yum.repos.d/docker-ce.repo # Change the enabled=0 below [docker-ce-test] to enabled=1 # # Install the specified version of Docker-ce: # step 1: Check Find Docker-ce's version: # Yum list docker-ce.x86_64--showduplicates | SORT-R # Loading Mirror speeds from cached Hostfile # Loaded Plugins:branch, Fastestmirror, LangPacks # docker-ce. x86_64 17.03.1.ce-1.el7.centos docker-ce-stable # docker-ce.x86_64 17.03.1.ce-1.el7.cen TOS @docker-ce-stable # docker-ce.x86_64 17.03.0.ce-1.el7.centos docker-ce-stable # A vailable Packages # StEP2: Install the specified version of Docker-ce: (version such as above 17.03.0.ce.1-1.el7.centos) # sudo yum-y install docker-ce-[version] 

Install docker ce in ubuntu
But when you makecache, install docker ce ubuntu,you get mad. The following error is prompted:



Attempting another mirror.
Docker-ce-stable/x86_64/primar FAILED                                          
https://download-stage.docker.com/linux/centos/7/x86_64/stable/ REPODATA/35BCD9EA290E4C0364EC5F286529BB89CB8A4891BF4A0F971CB1C7A45BEA3972-PRIMARY.SQLITE.BZ2: [Errno] Timeout On https://download-stage.docker.com/linux/centos/7/x86_64/stable/repodata/ 35BCD9EA290E4C0364EC5F286529BB89CB8A4891BF4A0F971CB1C7A45BEA3972-PRIMARY.SQLITE.BZ2: (Operation timed out After 30001 milliseconds with 0 out of 0 bytes received ')

Install docker ce on ubuntu

The Der Spiegel did not switch to Aliyun's mirror server, a bug in the Aliyun repo, which did not switch to Aliyun repo or use the official repo to cause such problems.





Solution:





Vi/etc/yum.repos.d/docker-ce.repo





Replace All "https://download-stage.docker.com/" with "https://mirrors.aliyun.com/docker-ce/"





Docker-ce.repo file after replacement:



[docker-ce-stable] name=docker ce stable-$basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/$ basearch/stable enabled=1 gpgcheck=1 GPGKEY=HTTPS://MIRRORS.ALIYUN.COM/DOCKER-CE/LINUX/CENTOS/GPG [ Docker-ce-stable-debuginfo] name=docker ce stable-debuginfo $basearch baseurl=https://mirrors.aliyun.com/docker-ce/ linux/centos/7/debug-$basearch/stable enabled=0 gpgcheck=1 gpgkey=https://mirrors.aliyun.com/docker-ce/linux/ CENTOS/GPG [Docker-ce-stable-source] name=docker ce stable-sources baseurl=https://mirrors.aliyun.com/docker-ce/ linux/centos/7/source/stable enabled=0 gpgcheck=1 GPGKEY=HTTPS://MIRRORS.ALIYUN.COM/DOCKER-CE/LINUX/CENTOS/GPG [ Docker-ce-edge] name=docker ce edge-$basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/$ Basearch/edge enabled=0 gpgcheck=1 GPGKEY=HTTPS://MIRRORS.ALIYUN.COM/DOCKER-CE/LINUX/CENTOS/GPG [ Docker-ce-edge-debuginfo] name=docker ce edge-debuginfo $basearch baseurl=https://mirrors.aliyun.com/docker-ce/ Linux/centos/7/debug-$basearch/edge enabled=0 gpgcheck=1 gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg [ Docker-ce-edge-source] Name=docker CE edge-sources baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/ Source/edge enabled=0 gpgcheck=1 gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg [docker-ce-test] Name
=docker CE test-$basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/$basearch/test enabled=0 Gpgcheck=1 gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg [Docker-ce-test-debuginfo] Name=Docker CE Test-debuginfo $basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/debug-$basearch/test enabled =0 gpgcheck=1 gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg [Docker-ce-test-source] Name=Docker CE Test-sources baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/source/test enabled=0 gpgcheck=1 gpgkey= HTTPS://MIRRORS.ALIYUN.COM/DOCKER-CE/LINUX/CENTOS/GPG [docker-ce-nightly] Name=docker CEnightly-$basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/$basearch/nightly enabled=0 Gpgcheck=1 gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg [Docker-ce-nightly-debuginfo] Name=Docker CE nightly-debuginfo $basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/debug-$basearch/ Nightly Enabled=0 gpgcheck=1 GPGKEY=HTTPS://MIRRORS.ALIYUN.COM/DOCKER-CE/LINUX/CENTOS/GPG [ Docker-ce-nightly-source] Name=docker CE nightly-sources baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos
 /7/source/nightly enabled=0 gpgcheck=1 GPGKEY=HTTPS://MIRRORS.ALIYUN.COM/DOCKER-CE/LINUX/CENTOS/GPG



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.