Can't use docker due to [ValueError: Extra Data] known issue

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.

https://docs.docker.com/docker-for-mac/troubleshoot/

This is an issue with fetching the docker images apparently, to avoid this issue until it is fixed I can just pull the image manually “docker pull mariadb” and then run “eb local run”. Anyway, this has temporarily fixed my issue.

@snapturtle could you please confirm what version of Docker for Mac and docker-compose you are using

E.g

$ docker -v
Docker version 1.12.0, build 8eab29e, experimental
$ docker-compose -v
docker-compose version 1.8.0, build f3628c7
$ which docker-compose
/usr/local/bin/docker-compose
$ ls -la /usr/local/bin/docker-compose
lrwxr-xr-x  1 dave  staff  72  5 Aug 15:18 /usr/local/bin/docker-compose -> /Users/dave/Library/Group Containers/group.com.docker/bin/docker-compose

Thanks!

Hi, here are the details:

$ docker -v
Docker version 1.12.0, build 8eab29e
$ docker-compose -v
docker-compose version 1.8.0, build f3628c7
$ which docker-compose
/usr/local/bin/docker-compose
$ ls -la /usr/local/bin/docker-compose
lrwxr-xr-x  1 stu  staff  80  3 Aug 10:13 /usr/local/bin/docker-compose -> /Users/stu/Library/Group Containers/group.com.docker/bin/docker-compose

Thanks.