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.
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/dockerReplace 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/dockerRestart Docker:
sudo service docker restartSigned-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
