尝试拉docker映像时出现证书问题

时间:2019-08-23 03:51:53

标签: docker docker-image docker-proxy

获取https://registry.access.redhat.com/v1/_ping:proxyconnect tcp:x509:无法验证xx.xx.xx.xx的证书,因为它不包含任何IP SAN

我们正在IBM Cloud的RHEL7 VM中运行docker。 VM位于代理服务器后面。我们为docker配置了正确的HTTP和HTTPS代理。但是,当尝试提取docker映像class Foo: # Template method @property def age(self): return self.dothis() # Hook method of TM is accessor method of property at here def dothis(self): return 11 class Bar(Foo): def dothis(self): return 44 时,它会抛出以下错误。

docker pull hello-world

有可能解决吗? 有没有办法在Docker中禁用证书检查?

1 个答案:

答案 0 :(得分:0)

如果使用https,则通过代理与Docker注册表的连接将失败。也许在线程https://stackoverflow.com/a/51073963/3437439中回答可能有助于复制ca.crt(但我尚未验证)。但是,将docker注册表添加到不安全的注册表中可以为我解决此错误。