Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/280.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 运行dockrun.aws.json文件时出错错误:ValueError::Extra data_Python_Amazon Web Services_Docker_Docker Compose_Amazon Elastic Beanstalk - Fatal编程技术网

Python 运行dockrun.aws.json文件时出错错误:ValueError::Extra data

Python 运行dockrun.aws.json文件时出错错误:ValueError::Extra data,python,amazon-web-services,docker,docker-compose,amazon-elastic-beanstalk,Python,Amazon Web Services,Docker,Docker Compose,Amazon Elastic Beanstalk,我正在尝试使用eb local run运行当前dockerrun.aws.json文件,但它会返回此错误 错误:ValueError::额外数据:第2行第1列-第8行第1列(char 61-478) 它在这些调试消息之后给出错误 Creating elasticbeanstalk_signup_1... /Library/Python/2.7/site-packages/docker/utils/utils.py:591: UserWarning: docker.utils.create_hos

我正在尝试使用eb local run运行当前dockerrun.aws.json文件,但它会返回此错误

错误:ValueError::额外数据:第2行第1列-第8行第1列(char 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...
dockrun.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": []
}
代码的其余部分位于此处:。我试图按照这里的教程来讨论这个话题

我尝试了几乎所有的方法,从删除dockerrun文件中的空格到缩小它。我不确定可能是什么错误

附件是错误的图像

--更新--

所以我在这里问了另一个问题()并将我的Python升级到最新的3.6版本,它能够给我一个更详细的错误,但仍然是一个错误。附件是错误的最新图像

错误:JSONDecodeError::额外数据:第2行第1列(字符61)


在做了进一步的研究之后,我正在研究问题是否是python 2.7,而不是python 3.6,我尝试安装python 3.6,但到目前为止没有任何效果,似乎一直在使用2.7。看起来python 3.6并没有什么不同,但我确实收到了一条可能更好的错误消息。您激活了新的VirtualNV吗
sourcepath/to/venv/bin/activate
yes查看我放置的最新更新映像,注意它说它使用的是EB Cli 3.90(Python 3.6.8),我看到您有。我不熟悉AWS docker服务来帮助您超越这一点在做了进一步的研究之后,我正在研究问题是否可能是python 2.7,而不是python 3.6,我尝试安装python 3.6,但到目前为止没有任何效果,似乎一直在使用2.7。看起来python 3.6没有什么不同,但我确实收到了一条更好的错误消息?你激活了你的新virtualenv吗
sourcepath/to/venv/bin/activate
yes查看我放置的最新更新映像,注意它说它使用的是EB Cli 3.90(Python 3.6.8),我看到您有。我不熟悉AWS docker服务来帮助您超越这一点