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,但我得到了同样的错误无论。