Docker Community Forums

Share and learn in the Docker community.

Proxy for Docker Hub pulls


(Geoff Bowers) #1

We’re using Docker Hub for automated builds and that’s grand. However, we’re based out of Sydney and despite a high speed internet connection it can be painful to keep pulling images out of New York. Even with a decent cache in the local dockerhost every developer in the office is downloading gigabytes of images from Docker Hub.

Is there anyway to proxy tagged images into a local registry?


Caching of Docker Hub?
(Geoff Bowers) #2

Hunting about the only thing I can find is talk of a “registry mirror”:

https://docs.docker.com/v1.6/articles/registry_mirror/

But the latest documentation suggests this is no longer an option:

Run a local registry mirror
The orginal content was deprecated. An archived version is available in the 1.7 documentation. For information about configuring mirrors with the latest Docker Registry version, please file a support request with the Distribution project.
https://docs.docker.com/v1.8/articles/registry_mirror/

Any help much appreciated.


(Jeff Anderson) #3

The docs for doing it with the distribution (v2) registry can be found in the repo: https://github.com/docker/distribution/blob/master/docs/mirror.md

I followed those instructions a few weeks ago to set that up on my home network, and it works fairly well.

It isn’t a true mirror, but a caching proxy.

/Jeff


Setting up a public mirror