This is a hugely frustrating error, I simply cannot use docker due to this error. I have tried with docker compose and a Dockerrun.aws.json to run images locally yet 100% of the time I get errors like:
Creating elasticbeanstalk_mysql_1...
Pulling image mariadb:latest...
latest: Pulling from library/mariadb
357ea8c3d80b: Pulling fs layer
256a92f57ae8: Pulling fs layer
d5ee0325fe91: Pulling fs layer
a15deb03758b: Pulling fs layer
201d6cba29d2: Pulling fs layer
48eebe692af7: Pulling fs layer
ERROR: ValueError :: Extra data: line 2 column 1 - line 11 column 1 (char 71 - 674)
This is using the below configuration:
{
"name": "mysql",
"image": "mariadb",
"environment": [
{
"name": "MYSQL_ROOT_PASSWORD",
"value": "db_pass"
},
{
"name": "MYSQL_DATABASE",
"value": "db_name"
}
],
"memory": 128,
"portMappings": [
{
"hostPort" : 3306,
"containerPort" : 3306
}
]
}
It also happens when trying to use other images such as jwilder/whoami.
I’ve tried fully reinstalling Docker for Mac, different Python versions. Is there any hope for me being able to use Docker as I can’t seem to see any help online for this despite docker listing it as a known error:
You might encounter errors when using docker-compose up with Docker for Mac (ValueError: Extra Data). We’ve identified this is likely related to data and/or events being passed all at once rather than one by one, so sometimes the data comes back as 2+ objects concatenated and causes an error.