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

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

我正在尝试设置一个 Amazon ECS deployment which employs an image from the Tutum 私人 Docker 注册表。 Tutum是私有的,显然需要认证。

根据 the ECS documentation,我修改了 EC2 实例上的文件“/etc/ecs/ecs.config”以包含 Tutum 的正确身份验证凭据:

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

授权字符串是我的 Tutum 凭据的 Base64 编码:'<username>:<password>'

但是,当我尝试 运行 相应的 ECS 任务时,它失败并显示以下消息:CannotPullContainerError: Authentication is required.

如何正确配置 ECS 以根据 Tutum 注册表进行身份验证,以便我可以从那里成功提取映像?

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