I needed space and executed: docker rmi $(docker images -f \"dangling=true\" -q)
docker rmi $(docker images -f \"dangling=true\" -q)
Since then I can\'t with docker-compose: docker-compose build
docker-compose build
I had the same issue and the approved answer didn't work for me.
Turns out I had a file with permissions which didn't allow the user running docker-compose to read it. After removing the file everything was OK