[英]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.