我正在执行eb部署,如下所示:
(这是一行,为了便于阅读,我把它拆开了)
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": []
}]
}我尝试过用2的引号和不带引号的AWSEBDockerrunVersion,但是无论如何,我都会得到同样的错误。
发布于 2015-12-22 17:27:27
呃。问题是我是在逃避括号。别那么做就行了。
https://stackoverflow.com/questions/34401608
复制相似问题