docker 删除容器,遇到:
devicemapper: Error running DeleteDevice dm_task_run failed
异常
[hadoop@hadoop02 ~]$ sudo docker rm 5ede1280f0bf
Error response from daemon: container 5ede1280f0bf791e91d40038b15decd42e8923546ae578abd96e08114c766478: driver "devicemapper" failed to remove root filesystem: failed to remove device 66e7e0583f028c2d6e7df3ef39e6a325e7dd7a2eadd06771373d7e94702d44c6: devicemapper: Error running DeleteDevice dm_task_run failed
journalctl -xe
...
Nov 25 21:46:35 hadoop02 sudo[18953]: hadoop : TTY=pts/1 ; PWD=/home/hadoop ; USER=root ; COMMAND=/bin/docker rm 5ede1280f0bf
Nov 25 21:46:36 hadoop02 kernel: device-mapper: thin: 253:10: unable to service pool target messages in READ_ONLY or FAIL mode
Nov 25 21:46:36 hadoop02 kernel: device-mapper: thin: 253:10: unable to service pool target messages in READ_ONLY or FAIL mode
Nov 25 21:46:36 hadoop02 dockerd[2072]: time="2023-11-25T21:46:36.308757603+08:00" level=error msg="Error removing mounted layer 5ede1280f0bf791e91d40038b15decd42e8923546ae578abd96e08114c766478: failed to remove device 66e7e0583f028c2d6e7df3ef39e6a325e7dd7a2eadd06771373d7e94702d44c6: devicemapper: Error running DeleteDevice dm_task_run failed"
Nov 25 21:46:36 hadoop02 dockerd[2072]: time="2023-11-25T21:46:36.309214859+08:00" level=error msg="Handler for DELETE /v1.41/containers/5ede1280f0bf returned error: container 5ede1280f0bf791e91d40038b15decd42e8923546ae578abd96e08114c766478: driver "devicemapper" failed to remove device 66e7e0583f028c2d6e7df3ef39e6a325e7dd7a2eadd06771373d7e94702d44c6: devicemapper: Error running DeleteDevice dm_task_run failed"
Nov 25 21:46:36 hadoop02 systemd-udevd[18960]: inotify_add_watch(7, /dev/dm-11, 10) failed: No such file or directory
解决方法:
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
参考:https://stackoverflow.com/questions/30719896
原文地址:https://blog.csdn.net/qq_15138049/article/details/134621000
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_6755.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。