我正在尝试使用eb本地运行运行当前的dockerrun.aws.json文件,但它会回复此错误。
错误:ValueError ::额外数据:第2行第1行 - 第8行第1列(字符61 - 478)
它在这些调试消息之后给出错误。
Creating elasticbeanstalk_signup_1...
/Library/Python/2.7/site-packages/docker/utils/utils.py:591: UserWarning: docker.utils.create_host_config() is deprecated. Please use Client.create_host_config() instead.
'docker.utils.create_host_config() is deprecated. Please use '
Creating elasticbeanstalk_nginx_1...
Pulling image chavisb/nginx-proxy:latest...
Dockerrun.aws.json文件
{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [
{
"name": "signup",
"image": "197984628663.dkr.ecr.us-west-2.amazonaws.com/webinar-demo",
"environment": [],
"essential": true,
"memory": 200,
"mountPoints": [],
"portMappings": [],
"links": null,
"volumesFrom": [],
"extraHosts": null,
"dnsServers": null,
"disableNetworking": null,
"dnsSearchDomains": null,
"hostname": null,
"entryPoint": null,
"ulimits": null,
"dockerSecurityOptions": null,
"workingDirectory": null,
"readonlyRootFilesystem": null,
"command": null,
"user": null,
"dockerLabels": null,
"logConfiguration": null,
"cpu": 1,
"privileged": null,
"memoryReservation": null
},
{
"name": "nginx",
"image": "chavisb/nginx-proxy",
"environment": [],
"essential": true,
"memory": 200,
"mountPoints": [],
"portMappings": [
{
"hostPort": 80,
"containerPort": 80,
"protocol": "tcp"
}
],
"links": [
"signup"
],
"volumesFrom": [],
"extraHosts": null,
"dnsServers": null,
"disableNetworking": null,
"dnsSearchDomains": null,
"hostname": null,
"entryPoint": null,
"ulimits": null,
"dockerSecurityOptions": null,
"workingDirectory": null,
"readonlyRootFilesystem": null,
"command": null,
"user": null,
"dockerLabels": null,
"logConfiguration": null,
"cpu": 1,
"privileged": null,
"memoryReservation": null
}
],
"volumes": []
}
其余代码位于此处:https://github.com/bchav/beanstalk-docker-signup。我试图按照主题https://www.youtube.com/watch?v=vaZmVSlWwyA
上的教程进行操作我已经尝试了从dockerrun文件中删除空格到缩小它的所有内容。我不确定错误是什么?
附加的是错误图像
- 更新 -
所以我在这里问了另一个问题(Upgrade Python on Mac from 2.7 to 3.6 (or newest) for elastic beanstalk client AWS)并将我的Python升级到最新的3.6,它能够给我一个更详细的错误,但仍然是一个错误。附件是最新的错误图像。
错误:JSONDecodeError ::额外数据:第2行第1列(字符61)