Warm tip: This article is reproduced from stackoverflow.com, please click
docker docker-compose

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

发布于 2020-04-07 10:04:42

This morning I was getting this error when executing docker-compose up:

docker-compose up

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

Questioner
Daniel Ramos
Viewed
253
2,262 2020-01-03 02:15

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.