如何设置充当代理的Docker注册表? [英] How to set-up a docker registry acting as a Proxy?

查看:79
本文介绍了如何设置充当代理的Docker注册表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台服务器(我们将其命名为A),该服务器可以访问互联网,并且可以从该服务器上从docker.io注册表中提取图像。

I have a server (let's name it A) which may have access to internet and from which I'm able to pull images from the officiel docker.io registry.

我还有其他服务器(B,C),出于安全原因不能具有相同的访问权限,但可以访问A。

I also have other servers (B, C) which cannot have this same access for security reasons, but are allowed to have access to A.

我还决定在A上安装一个私有注册表,可以在B和C上使用它。

I also have decided to install a private registry on A, which can be used from B and C.

是否有可能让该注册表充当代理,所以当我想要从B获取正式图像,可以通过A完成吗?

Is it possible to have this registry acting as a proxy, in the way that when I want to pull an official image from B, it could be done through A ?

推荐答案

同时,这可能是这样的:

Meanwhile thats possible:

https: //blog.docker.com/2015/10/registry-proxy-cache-docker-open-source/

https://docs.docker.com/registry/recipes/mirror/

但是Pu不支持使用这种注册表:

But Pushing to such a registry is not supported:

https://docs.docker.com/registry/configuration/#proxy

这篇关于如何设置充当代理的Docker注册表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆