簡體   English   中英

具有專用存儲庫CannotPullContainerError的Elastic Beanstalk多容器Docker

[英]Elastic Beanstalk Multicontainer Docker with private repository CannotPullContainerError

以前,我使用單個docker容器彈性beantalk環境。 它能夠使用我存儲在S3上的登錄憑據從私有docker hub倉庫下載容器。 但是,我創建了一個新的多容器docker環境,從那時起,我總是收到錯誤消息:

change="{TaskArn:arn:aws:ecs:eu-west-1:188125317072:task/dbf02781-8140-422a-9b81-93d83441747d
ContainerName:aws-first-test Status:4 
Reason:CannotPullContainerError: 
Error: image test/awstest:latest not found ExitCode:<nil> PortBindings:[] SentStatus:NONE}"

(我使用的容器與之前使用的容器完全相同)

該容器確實存在,並且環境與登錄憑據位於同一位置(愛爾蘭)

我的Dockerrun.aws.json:

{
  "AWSEBDockerrunVersion": 2,
  "authentication": {
    "Bucket": "docker-ireland",
    "Key": ".dockercfg"
  },

  "containerDefinitions": [

    {
      "name": "aws-first-test",
      "image": "test/awstest",
      "memory": 250
    },
    {
      "name": "aws-second-test",
      "image": "test/awstest",
      "memory": 250
    }
  ]
}

Dockerrun.aws.json區分大小寫,並且在版本2.0中,密鑰authenticationbucketkey更改為小寫。

這個答案來自亞馬遜的AWS論壇: https ://forums.aws.amazon.com/message.jspa ? messageID = 667098

就我而言,此錯誤是由於我的S3配置文件中包含以下內容引起的:

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

不開玩笑,我有關鍵字“服務器”而不是注冊表URL服務(對於docker為https://index.docker.io/v1/ )。

我必須從某些博客或文檔idk中復制。 感覺已經轉儲了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM