Docker dm_task_run failed error

As seen in issue 3721, this generally is a disk space issue.

The problem is that docker rmi doesn't always work in that case:

Getting this in v1.2 on CentOS 6.5 if a disk fills up before the image finishes pulling. Unable to rmi the incomplete image.

One "nuclear" option:

removing everything in /var/lib/docker worked out. Thanks

Another reason can be a common layer of fs to be downloaded between two images.


This was worked for me,

mv -f /var/lib/docker/* /data/tmp
systemctl restart docker.service
docker system prune -a

1) service docker stop

2) thin_check /home/docker/devicemapper/devicemapper/metadata

3) thin_check --clear-needs-check-flag /home/docker/devicemapper/devicemapper/metadata

4) service docker start

Tags:

Docker