简体   繁体   English

docker私有注册表作为本地计算机和服务器计算机中的默认注册表

[英]docker private registry as default registry in local machine and server machine

I like to have my private docker registry as default one in my local and server machine. 我想在本地和服务器计算机上将我的私有Docker注册表作为默认注册表

When pulling images (ubuntu, httpd), it should check for my registry only 拉取映像(ubuntu,httpd)时,应仅检查我的注册表

You could forbid on firewall connecting server to dockerhub. 您可以禁止将服务器连接到dockerhub的防火墙。 This way dockerd will be forced to use your registry only. 这样,dockerd将被强制仅使用您的注册表。 But that would work only for configured mirror. 但这仅适用于已配置的镜像。

In fact, to use only a private registry instead dockerhub it's not possible out of the box. 事实上,仅使用私有注册表而不是dockerhub是不可能的。 There are special modifications of dockerd that allows you to set it up - see this thread How to change the default docker registry from docker.io to my private registry? dockerd有一些特殊的修改,允许您对其进行设置-请参见此线程如何将默认docker注册表从docker.io更改为我的私有注册表? .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM