简体   繁体   中英

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. Tutum being private, it requires authenticating obviously.

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_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>' .

However, when I try to run the corresponding ECS task, it fails with this message: CannotPullContainerError: Authentication is required .

How do I properly configure ECS to authenticate against the Tutum registry, so I can successfully pull images from there?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM