简体   繁体   English

如何使用Amazon ECS从Tutum私有注册表中提取Docker映像?

[英]How do I pull Docker images from the Tutum private registry with Amazon ECS?

I am trying to set up an Amazon ECS deployment which employs an image from the Tutum private Docker registry. 我正在尝试建立一个Amazon ECS部署,该部署使用来自Tutum私有Docker注册表的映像。 Tutum being private, it requires authenticating obviously. Tutum是私有的,因此显然需要进行身份验证。

As per the ECS documentation , I've modified the file '/etc/ecs/ecs.config' on the EC2 instance to contain the correct authentication credentials for Tutum: 根据ECS文档 ,我已修改EC2实例上的文件'/etc/ecs/ecs.config'以包含适用于Tutum的正确身份验证凭据:

ECS_ENGINE_AUTH_TYPE=dockercfg
ECS_ENGINE_AUTH_DATA={"tutum.co":{"auth":"<auth-string>","email":"<my-email>"}}

The auth string is a Base64 encoding of my Tutum credentials: '<username>:<password>' . auth字符串是我的Tutum凭证的Base64编码: '<username>:<password>'

However, when I try to run the corresponding ECS task, it fails with this message: CannotPullContainerError: Authentication is required . 但是,当我尝试运行相应的ECS任务时,它将失败,并显示以下消息: CannotPullContainerError:Authentication is required

How do I properly configure ECS to authenticate against the Tutum registry, so I can successfully pull images from there? 如何正确配置ECS以针对Tutum注册表进行身份验证,以便可以从那里成功提取映像?

似乎是要重新启动EC2实例,以便应用“ /etc/ecs/ecs.config”中的设置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 AWS ECS 的单独账户中从私有注册表中拉取容器 - pull container from private registry in separate account in AWS ECS 在 AWS ECS 中使用来自私有外部注册表的 docker 映像 - Use docker image from private external registry in AWS ECS AWS ECS FARGATE - 无法从 docker 私有存储库中提取图像 - AWS ECS FARGATE - unable to pull image from docker private repository 无法从 ECS 集群中运行的容器实例上的 amazon ECS 私有存储库中提取映像 - Unable to pull image from amazon ECS private repository on container instances running in ECS cluster 如何从 Amazon ECS 任务获取退出代码? - How do I get an exit code from an Amazon ECS Task? 如何将不安全的docker注册表与Amazon EC2 Container Service(ECS)一起使用? - How do I use insecure docker registries with Amazon EC2 Container Service (ECS)? 如何提取SageMaker的预构建Docker映像? - How do I pull the pre-built docker images for SageMaker? ECS 服务:如果未将公共 ip 分配给服务任务,则无法从 ECR 注册表中提取 docker 映像 - ECS Service: can't pull docker image from ECR registry without assign public ip to service tasks 如何使用 Pulumi 配置 AWS ECS Fargate 任务/集群以访问私有 Docker 容器注册表(如 GitHub 容器注册表)? - How to configure AWS ECS Fargate Tasks/Cluster to access private Docker Container Registry (like GitHub Container Registry) with Pulumi? 如何让 Docker Swarm 管理器使用 IAM 角色权限从 AWS ECR 中提取图像? - How do I get a Docker Swarm manager to pull images from AWS ECR using IAM Role permissions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM