ERROR: readlink /var/lib/docker/overlay2: invalid argument

I think the easier way is to remove all cache and containers and pull them again.

docker system prune --all
docker volume prune 
docker-compose up

I think this will solve the error.


The problem was that one or more image where corrupted.

I had to start running my images one by one with:

docker-compose up <service 1> <service 2>...

until I found the broken one, which was the backoffice image.

Then I rebuilt that image with:

docker-compose build --no-cache <broken service>

and finally everything started working nicely again.


To troubleshoot run with the verbose flag --verbose

 docker-compose.exe --verbose -f ./compose.yml up

In my case I had to remove specific corrupt images that were only indicated when running up with the verbose flag