Configure Google’s caching Docker Hub mirror

Today I learned that it is possible to use a caching proxy for the Docker Daemon.

I wanted to have a new image built for GoBlog in my Drone CI. But it failed to download the required Docker image due to timeouts. By default, Docker Hub is used there. However, Docker Hub has availability issues from time to time and recently introduced more limitations.

One solution is to use Google’s caching Docker Hub mirror. To do this, simply add the following configuration to /etc/docker/daemon.json and reboot or restart the daemon:

{
"registry-mirrors": ["https://mirror.gcr.io"]
}

After that, my problem was solved. I think Google has more resources to provide high availability.

Interactions & Comments