Use the Aliyun container hub to accelerate Docker mirror downloads __container

Source: Internet
Author: User
Tags docker hub docker registry aliyun

Aliyun's mirror services are well done, including the commonly used Debian (Ubuntu) and Redhat (CentOS) mirrors, the repo of all kinds of open-source software, and Docker's container mirrors, all copy one on a domestic server. Download speed is no longer limited by the big firewall you know. System and various types of open source software backup directly to see http://mirrors.aliyun.com/, the following alone Docker hub in Ali's Mirror accelerator settings, to CentOS7 for example.


Log on to the Aliyun developer platform http://dev.aliyun.com/and enter the accelerator page:

First you have to install Docker Engine, according to Docker official website installation can. Ali here the configuration step is to change the Docker daemon parameters, you can directly modify the Docker service configuration file/usr/lib/systemd/system/docker.service. If you use version 1.12, Docker daemon The execution file name is a bit different.

# Docker version
Client:
 version:      1.12.5
 API version:  1.24 go
 version:   go1.6.4
 Git Commit:   7392c3b
 Built:        Fri Dec 02:23:59 2016 os/arch
 :      linux/amd64

Server:
 Version:      1.12.5
 API version:  1.24 go
 version:   go1.6.4
 Git commit:   7392c3b
 Built:        Fri Dec 02:23:59 2016
 os/arch:      linux/amd64

Modified according to the Dockerd--registry-mirror parameters.

# Dockerd--help | grep registry
  --disable-legacy-registry                Disable contacting Legacy registries--insecure-registry=[
  ]                   Enable Insecure registry communication
  --registry-mirror=[]                     preferred Docker Registry mirror

# vim/usr/lib/systemd/system/docker.service 
[unit]
description=docker application Container Engine
documentation=https://docs.docker.com
after=network.target

[Service]
type=notify
# The The ' not ' to ' use ' systemd for cgroups because ' delegate issues still # exists and SYSTEMD currently does not
s Upport the Cgroup feature set required
# for containers run by Docker
Execstart=/usr/bin/dockerd  -- Registry-mirror=https://jnxt8d8b.mirror.aliyuncs.com #更改这里

Restart the Docker service after modification:

# systemctl Daemon-reload
# systemctl Restart Docker
After the execution Docker pull xxx speed that is the lever.

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.