"使用Docker Json文件从#ElasticBeanstalk访问S3存储桶"

时间:2016-03-15 23:31:01

标签: json amazon-web-services amazon-s3 docker

当我尝试从ElasticBeanstalk在Docker Hub中部署我的代码时,我收到以下错误。 问题出在S3存储桶端点上。在下面的Json模板中为S3存储桶指定端点的正确方法是什么。

错误:

<Error><Code>NoSuchBucket</Code>
<Message>The specified bucket does not exist</Message>
<BucketName>srini-bucket</BucketName>
<RequestId>87B1CFBA66EAC80B</RequestId>     
<HostId>XSzOT/Efj0nFK8Qks6XpH6HBthCA7j9q8M42eRiqrgBqvM3Nl4f4rt73r+JhUao= </HostId>
</Error>
Failed to download authentication credentials docker/.dockercfg from srini-bucket(Executor::NonZeroExitStatus)

JSON模板

{
 "AWSEBDockerrunVersion": "1",
 "Image": {
      "Name": "champ45/tomstar",
      "Update": "true"
          },
 "Authentication": {
      "Bucket": "srini-bucket.s3-us-west-1.amazonaws.com",
      "Key": "dockerFolder/.dockercfg"
         },
 "Ports": [
     {
      "ContainerPort": "80"
      }
        ],
  "Logging": "/var/log/"
   }

1 个答案:

答案 0 :(得分:0)

我认为JSON模板中指定的存储桶名称是错误的。 1234是不必要的。

请阅读以下文档中的.s3-us-west-1.amazonaws.com部分: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_image.html