Proxy to another docker registry

Sometimes your workstation or servers are not allowed to connect to the internet and so they can't reach the official docker registry. Or you have a central docker registry in your company and also want to create your own for images in your team. But you don't want to remember which registry you need to use for specific images. This is where the docker proxy support joins the game.

You can configure repositorio to act as a proxy server for images that are not found localy to an upstream registry.

To configure your private registry to connect to an upstream registry you need to set the following options.

<Repository docker>
  local = docker
  type  = Docker
  proxy = true
  url   =
  upstream_user     = upstream-user
  upstream_password = upstream-password

If you want to learn how to setup a private registry please see this article.