amazon web services - Deploy image to AWS Elastic Beanstalk from private Docker repo -
i'm trying pull docker image private repo , deploy on aws elastic beanstalk of dockerrun.aws.json packed in zip. content
{ "awsebdockerrunversion": "1", "authentication": { "bucket": "my-bucket", "key": "docker/.dockercfg" }, "image": { "name": "namespace/repo:tag", "update": "true" }, "ports": [ { "containerport": "8080" } ] }
where "my-bucket" bucket's name on s3, uses same location bs environment. configuration that's set in key result of
$ docker login
invoked in docker2boot app's terminal. it's copied folder "docker" in "my-bucket". image exists sure. after upload .zip dockerrun file eb , on deploy
activity execution failed, because: warning: invalid auth configuration file
what missing? in advance
docker has updated configuration file path ~/.dockercfg
~/.docker/config.json
. have leveraged opportunity breaking change configuration file format.
aws still expects former format, 1 used in ~/.dockercfg
(see file name in documentation):
{ "https://index.docker.io/v1/": { "auth": "__auth__", "email": "__email__" } }
which incompatible new format used in ~/.docker/config.json
:
{ "auths": { "https://index.docker.io/v1/": { "auth": "__auth__", "email": "__email__" } } }
they pretty similar though. if version of docker generates new format, strip auths
line , corresponding curly brace , go.
Comments
Post a Comment