CannotPullContainerError:无法解决引第一批作业出现无法拉取容器错误

0

【以下的问题经过翻译处理】 我正在尝试完成AWS Batch的简单“提交第一个批处理作业”教程。我按照5个步骤执行,选择Fargate作为平台,并将所有项目设置为默认值,最后提交作业。然而,该作业失败并显示以下状态原因:

CannotPullContainerError: inspect image has been retried 5 time(s): failed to resolve ref "docker.io/library/amazonlinux:latest": failed to do request: Head https://registry-1.docker.io/v2/library/amazonlinux/manifests/latest: dial tcp 34.237.244.67:44...

请问怎么解决?谢谢!

profile picture
ESPECIALISTA
feita há 2 anos43 visualizações
1 Resposta
0

【以下的回答经过翻译处理】 你好!如果在使用Fargate时,与Batch计算环境关联的子网没有附加NAT网关,则作业将失败,因为它无法连接到Internet来拉取Docker镜像。要解决此问题,可以在Batch作业定义中设置assignPublicIp参数为“ENABLED”。有关Batch中Fargate计算环境的更多信息,请查看此文档

profile picture
ESPECIALISTA
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas