Download acceleration using 163 Hub Mirroring in Docker (Centos 6)

Source: Internet
Author: User
Tags docker hub

In the process of learning Docker, the download image speed is particularly slow, because the Docker hub does not deploy a server or CDN in the country, coupled with the speed of the domestic network and other reasons, the image download is very time-consuming. To overcome the cross-ocean network latency, one of the most effective ways to quickly and efficiently download Docker images is to use a domestic Docker image source. Here's how to use the 163 image source to speed up the method.

To add a mirror source:

Vim/etc/sysconfig/docker

Add the following content:

Other_args= "--registry-mirror=http://hub-mirror.c.163.com"

Options= '--registry-mirror=

Http://hub-mirror.c.163.com '

To restart the Docker service:

[Email protected] ~]#/etc/init.d/docker restartstopping docker: [OK]starti Ng Docker:

Test:

[email protected] ~]# Docker search CentOS

NAME DESCRIPTION STARS Official automated

CentOS the official build of CentOS. 2979 [OK]

Jdeathe/centos-ssh CentOS-6 6.8 x86_64/centos-7 7.3.1611 x8 ... [OK]

Nimmis/java-centos This is Docker images of the CentOS 7 with dif ... [OK]

Consol/centos-xfce-vnc CentOS container with "headless" VNC Sessi ... [OK]

Torusware/speedus-centos always updated official CentOS Docker imag ... 8 [OK]

egyptianbman/docker-centos-nginx-php A Simple and highly configurable Docker co ... 6 [OK]

Nathonfowlie/centos-jre Latest CentOS image with the JRE Pre-insta ... 5 [OK]

CENTOS/MARIADB55-CENTOS7 3 [OK]

Harisekhon/centos-java Java on CentOS (OpenJDK, tags jre/jdk7-8) 2 [OK]

Centos/tools Docker image that has systems administrati ... 2 [OK]

Timhughes/centos CentOS with SYSTEMD installed and running 1 [OK]

Sgfinans/docker-centos CentOS with a running sshd and Docker 1 [OK]

Centos/redis Redis built for CentOS 1 [OK]

Blacklabelops/centos CentOS Base image!     Built and Updates daily! 1 [OK]

Darksheer/centos Base CentOS Image--Updated hourly 1 [OK]

Harisekhon/centos-scala Scala + CentOS (OpenJDK tags 2.10-jre7-2 ... 1 [OK]

Kz8s/centos official CentOS plus epel-release 0 [OK]

Grossws/centos CentOS 6 and 7 base images with Gosu and l ... 0 [OK]

Smartentry/centos CentOS with smartentry 0 [OK]

Grayzone/centos Auto Build for CentOS. 0 [OK]

Vcatechnology/centos A CentOS Image which is updated daily 0 [OK]

Ustclug/centos USTC CentOS 0 [OK]

Januswel/centos Yum update-ed centos image 0 [OK]

Repositoryjp/centos Docker Image for CentOS. 0 [OK]

Wenjianzhou/centos CentOS 0 [OK]

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/8C/87/wKiom1hvBE7gM5qzAACrMI7eNZ4194.png-wh_500x0-wm_ 3-wmp_4-s_1472479374.png "title=" Qq20170106104309.png "alt=" Wkiom1hvbe7gm5qzaacrmi7enz4194.png-wh_50 "/>

You can see the download speed is still very fast!

This article is from the "Running Snail" blog, please make sure to keep this source http://441274636.blog.51cto.com/5054639/1889627


Download acceleration using 163 Hub Mirroring in Docker (Centos 6)

Related Article

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.