[英]Elastic Beanstalk :Error: Failed to parse Dockerrun JSON file: json: invalid use of ,string struct tag, trying to unmarshal unquoted value into int
I am getting below error in elastic beanstalk logs- Elastic Beanstalk:Error: Failed to parse Dockerrun JSON file: json: invalid use of,string struct tag, trying to unmarshal unquoted value into int when trying to deploy multi container applications to elastic beanstalk.我在弹性 beanstalk 日志中遇到错误 - Elastic Beanstalk:Error: Failed to parse Dockerrun JSON file: json: invalid use of, string struct tag, 在尝试将多容器应用程序部署到弹性 beanstalk 时尝试将未加引号的值解组为 int 。 Below is my docker file
下面是我的 docker 文件
{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [
{
"name": "client",
"image": "imagename1",
"hostname": "client",
"essential": false,
"memory": 128
},
{
"name": "server",
"image": "imagename2",
"hostname": "api",
"essential": false,
"memory": 128
},
{
"name": "worker",
"image": "imagename3",
"hostname": "worker",
"essential": false,
"memory": 128
},
{
"name": "nginx",
"image": "imagename4",
"hostname": "nginx",
"essential": true,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
}
],
"links": ["server", "client"],
"memory": 128
}
]
}
What can be the possible reason for this?这可能是什么原因?
I just ran into this issue myself.我自己也遇到了这个问题。 It is as Marcin says.
正如马尔辛所说。 Upon the creation of the environment you need to select Docker and then make sure to specify the multi docker version below that drop down.
创建环境后,您需要 select Docker 然后确保在该下拉列表下方指定多 docker 版本。 The Udemy course you are following was using an older UI of AWS which is probably why you missed it the first time around.
您正在学习的 Udemy 课程使用的是较旧的 AWS UI,这可能是您第一次错过它的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.