开发者社区 > 云原生 > Serverless > 正文

函数计算里请求函数报下面错误, 是我们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 Gatewayc006339620b51752de862d3442bf48e3.png

展开
收起
小小鹿鹿鹿 2023-12-26 12:09:03 34 0
1 条回答
写回答
取消 提交回答
  • 函数计算函数调用时拉取镜像失败,通常有以下几种原因:

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

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

    2023-12-27 15:38:20
    赞同 展开评论 打赏

快速交付实现商业价值。

相关产品

  • 函数计算
  • 相关电子书

    更多
    Deep Dive:云上VPC分层安全架构设计 立即下载
    经典网络迁移VPC最佳实践 立即下载
    AWS 数据中心与 VPC 揭秘 立即下载