jlelse’s Blog

Thoughts, stories and ideas

Configure Google’s caching Docker Hub mirror

Published on in 👨‍💻 Dev
Short link: https://b.jlel.se/s/48c
Share online Translate

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