Docker:禁用从远程注册表中提取 [英] Docker: disable pulling from remote registry

查看:62
本文介绍了Docker:禁用从远程注册表中提取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我输入错误内容时,它将尝试在中央注册表中搜索。如何完全禁用它?

When I mistype things it tries to search in the central registry. How to disable it completely?

是否可以清除该URL?

Is there an option to clear that URL?

推荐答案

如果您将redhat克隆与centos extras的rpms一起使用,则它们具有执行此操作的参数:

If you use the a redhat clone with the rpms from centos extras, they have a parameter to do that:

--block-registry hostname

这是RedHat扩展名(请参阅此处),但我认为上游不接受(考虑 13450

This is a RedHat extension (see here) which I don't think was accepted upstream (considering 13450)

这篇关于Docker:禁用从远程注册表中提取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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