[英]CannotPullContainerError when trying to pull from a private docker repository in AWS Elastic Beanstalk Multicontainer
[英]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
}
]
}
就我而言,此錯誤是由於我的S3配置文件中包含以下內容引起的:
{
"server" :
{
"auth" : "*****",
"email" : "*****"
}
}
不開玩笑,我有關鍵字“服務器”而不是注冊表URL服務(對於docker為https://index.docker.io/v1/ )。
我必須從某些博客或文檔idk中復制。 感覺已經轉儲了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.