Podman Play无法提取本地主机映像:获取“ https:// localhost / v2 /”:拨打tcp [:: 1]:443:连接:连接被拒绝

时间:2020-09-19 15:01:07

标签: podman

我为运行三个容器(Infra,Mariadb和本地容器映像)的pod生成了YAML定义:

podman generate kube > my-pod.yaml

然后我要使用定义进行部署:

podman play kube my-pod.yaml

当我想提起它时,podman似乎避免从本地主机提取普通映像。错误是:

尝试拉localhost / myimg:latest ... 获取“ https:// localhost / v2 /”:拨打tcp [:: 1]:443:connect:连接被拒绝 错误:无法拉localhost / myimg:latest:初始化源docker:// localhost / myimg:latest:错误ping docker注册表localhost:获取“ https:// localhost / v2 /”:拨打tcp [:: 1]: 443:连接:连接被拒绝

如何覆盖podman的这种行为?已经成功使用了这种容器管理方法here,但是在该示例中,没有本地映像。仅使用存储库中的图像。

1 个答案:

答案 0 :(得分:1)

我只是碰到了这个问题,并通过从吊舱图像中删除“:latest”标签对其进行了整理。如果存在:latest标记,则会导致podman始终尝试从远程存储库中提取图像,如此处所述-https://kubernetes.io/docs/concepts/containers/images/

相关问题