Cloud Native 2 min read

Speed Up Docker Pulls with DaoCloud Mirror: Quick Setup Guide

This guide explains how to configure Docker’s daemon to use DaoCloud’s Docker Hub Mirror on CentOS and Ubuntu, enabling dramatically faster image downloads by adding a registry‑mirror option, restarting the service, and verifying the speed with a test pull.

Java High-Performance Architecture
Java High-Performance Architecture
Java High-Performance Architecture
Speed Up Docker Pulls with DaoCloud Mirror: Quick Setup Guide

Directly downloading Docker images can often fail or be extremely slow. DaoCloud offers a Docker Hub Mirror service that accelerates image pulls.

Users can register for the Docker Hub Mirror at https://account.daocloud.io/signin . After logging into the console, click Start your accelerator to obtain a mirror address, then configure this address in the Docker daemon startup script and restart Docker.

CentOS configuration

Add the mirror to Docker options:

sudo echo "DOCKER_OPTS=\"$DOCKER_OPTS --registry-mirror=http://xxx.m.daocloud.io\"" >> /etc/default/docker

Replace http://xxx.m.daocloud.io with your own mirror address.

Restart the Docker service: service docker restart Test the speed by pulling a small image (e.g., docker pull crosbymichael/redis); the download should be very fast.

Ubuntu configuration

Append the mirror option to Docker defaults:

echo "DOCKER_OPTS=\"$DOCKER_OPTS --registry-mirror=http://xxx.m.daocloud.io\"" | sudo tee -a /etc/default/docker

Restart Docker:

sudo service docker restart
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

DockerContainerCentOSUbuntuMirrorDaoCloud
Java High-Performance Architecture
Written by

Java High-Performance Architecture

Sharing Java development articles and resources, including SSM architecture and the Spring ecosystem (Spring Boot, Spring Cloud, MyBatis, Dubbo, Docker), Zookeeper, Redis, architecture design, microservices, message queues, Git, etc.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.