Error Running Dockerrun.aws.json file ERROR: ValueError :: Extra data

I’m trying to run the current dockerrun.aws.json file with eb local run but it gives back this error.

ERROR: ValueError :: Extra data: line 2 column 1 – line 8 column 1 (char 61 – 478)

  • Where to find my discourse output?
  • How do you share volumes between Docker containers in an Elastic Beanstalk application?
  • How to deploy AngularJS app using nginx + docker to Elastic Beanstalk?
  • docker boto3 AWS was not able to validate the provided access credentials
  • Websocket timeouts using AWS Application Load Balancer
  • Using pm2 Inside of an Auto-Scaling Environment
  • It gives the error after these debug messages.

    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 File

    {
        "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": []
    }
    

    The rest of the code is located here: https://github.com/bchav/beanstalk-docker-signup. I was attempting to follow the tutorial here on the topic, https://www.youtube.com/watch?v=vaZmVSlWwyA

    I’ve tried just about everything from getting rid of spaces in the dockerrun file to minifying it. I’m not sure what the error could be?

    Attached is image of error

    enter image description here

    UPDATE

    So I asked another question here (Upgrade Python on Mac from 2.7 to 3.6 (or newest) for elastic beanstalk client AWS) and got my Python upgraded to the newest 3.6, it was able to give me a more detailed error, but still an error. Attached is newest image of error.

    ERROR: JSONDecodeError :: Extra data: line 2 column 1 (char 61)

    enter image description here

  • Motivation for putting Docker containers inside an AWS EC2 instance
  • What does Illegal Instruction 4 mean with docker-compose on a Mac?
  • using kerberos in a container, inside of openshift / kubernetes
  • Node / Express app can't connect to docker mongodb
  • Name a docker at build and how to retrieve it
  • exited: scrapy (exit status 0; not expected)
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.