Cannot authenticate to Docker in Elastic Beanstalk through S3 Cannot authenticate to Docker in Elastic Beanstalk through S3 docker docker

Cannot authenticate to Docker in Elastic Beanstalk through S3


OK, let's do this;

Looking at the same doc page,

With Docker version 1.6.2 and earlier, the docker login command creates the authentication file in ~/.dockercfg in the following format:

{  "server" :  {    "auth" : "auth_token",    "email" : "email"  }}

You already got this part correct I see. Please double check the cases below one by one;

1) Are you hosting the S3 bucket in the same region?

The Amazon S3 bucket must be hosted in the same region as the environment that is using it. Elastic Beanstalk cannot download files from an Amazon S3 bucket hosted in other regions.

2) Have you checked the required permissions?

Grant permissions for the s3:GetObject operation to the IAM role in the instance profile. For details, see Managing Elastic Beanstalk Instance Profiles.

3) Have you got your S3 bucket info in your config file? (I think you got this too)

Include the Amazon S3 bucket information in the Authentication (v1) or authentication (v2) parameter in your Dockerrun.aws.json file.

Can't see your permissions or your env region, so please double check those.If that does not work, i'd upgrade to Docker 1.7+ if possible and use the corresponding ~/.docker/config.json style.