ubuntu docker dm_task_run failed error [How to Solve]

Problem Description:

[[email protected] docker]# docker rm 7226093de996
Error response from daemon: container 7226093de99632756b9b35caadb98e0db783aa3db04fc39d7d8323250b24445d: driver "devicemapper" failed to remove root filesystem: failed to remove device be2f5fe82905d8d1550717f86a0e72274e58d238331739da3bd15b86843e9444: devicemapper: Error running DeleteDevice dm_task_run failed

Solution:
1. systemctl stop docker
2. thin_check /var/lib/docker/devicemapper/devicemapper/metadata
3. thin_check –clear-needs-check-flag /var/lib/docker/devicemapper/devicemapper/metadata
4. systemctl start docker

 

Read More: