Jan-Lukas Else

Thoughts of an IT expert

Configure Google’s caching Docker Hub mirror

Published on in 👨‍💻 Dev
Short link: https://b.jlel.se/s/48c
⚠️ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.

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.

Tags:

Jan-Lukas Else
Interactions & Comments