I needed space and executed: docker rmi $(docker images -f \"dangling=true\" -q)
Since then I can\'t with docker-compose: docker-compose build
In my case, the problem was a .dump file created by one of my project's scripts.
docker-compose
passes the context to the engine as a tar file, therefore, the build
command was packing a tar (the .dump file) inside another tar file (the docker context) hence throwing an unexpected EOF on the context.
Since I don't need the .dump file in the container, I added it to my .dockerignore file.