0°

函数计算里请求函数报下面错误, 是我们VPC配置有问题么?或函数执行时拉取镜像报错原因是什么?[阿里云]

函数计算里请求函数报下面错误, 是我们VPC配置有问题么?或函数执行时拉取镜像报错原因是什么?”ErrorCode”:”PullImageFailed”,
“ErrorMessage”: “Failed to pull image. ContainerStartDuration:46 seconds. failed to register layer: Error processing tax file(exit status 1): time=\”2023-12-19T09:56:26
+08:00\” level=info msg=\”LSMD log clear go thread started\” \

Failed to pull image. ContainerStartDuration:32 seconds. image xxx: failed to resolve reference \”xxxx\”: failed to do request: Head \”xxxx\”: Bad Gateway

以下为热心网友提供的参考意见

函数计算函数调用时拉取镜像失败,通常有以下几种原因:

镜像仓库未配置 VPC 白名单,导致函数计算无法访问镜像仓库。
镜像仓库的镜像权限设置不正确,导致函数计算无法拉取镜像。
函数计算的 Container 实例的网络配置不正确,导致函数计算无法访问镜像仓库。
建议您检查一下以下几项配置:

镜像仓库的 VPC 白名单是否包含函数计算的 ECS 实例的 IP 地址。
镜像仓库的镜像权限是否设置为公有访问。
函数计算的 Container 实例的网络配置是否正确。

「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
=====这是一个广告位,招租中,联系qq 78315851====