1
我做的EB部署像這樣:
(這是一條線,我打破了它的可讀性)您如何爲多個Docker容器進行ElasticBeanstalk部署?
eb create --platform "multi-container-docker-1.7.1-\(generic\)"
my-web-and-api --profile default --region us-west-2 --cname
mycname --tags STACK=mystack
我得到這個錯誤:
Invalid Dockerrun.aws.json version, abort deployment.
我Dockerrun.aws以.json看起來是這樣的:
{
"AWSEBDockerrunVersion": 2,
"authentication": {
"bucket": "my-docker-config",
"key": "Dockercfg"
},
"volumes": [],
"containerDefinitions": [{
"name": "my-web",
"image": "my-web:multi",
"environment": [{
"name": "Container",
"value": "Node.js"
}],
"essential": true,
"memory": 128,
"links": [
"my-api"
],
"mountPoints": [],
"portMappings": [{
"hostPort": "80",
"containerPort": "5000"
}]
}, {
"name": "my-api",
"image": "my-api:multi",
"memory": 128,
"environment": [{
"name": "Container",
"value": "Node.js"
}],
"essential": true,
"mountPoints": []
}]
}
我在引號和不試圖AWSEBDockerrunVersion與2,但我得到了同樣的錯誤無論。