最新消息:

Error response from daemon: unable to remove filesystem for xxxx

docker admin 236浏览 0评论

问题:

某个容器无法 rm

 # docker ps -a | grep 96546a8e9871
96546a8e9871        registry.aikaiyuan.com/aikaiyuan/aikaiyuan:42f2721-20   "docker-php-entrypoi…"   5 weeks ago         Removal In Progress   0.0.0.0:10314->80/tcp     aikaiyuan.3.2
 # docker rm 96546a8e9871
Error response from daemon: unable to remove filesystem for 96546a8e9871f07c79abba4ef4818beed76c006e6d254839dbedb00641815075: remove /data0/docker/containers/96546a8e9871f07c79abba4ef4818beed76c006e6d254839dbedb00641815075/mounts/shm: device or resource busy

无法删除 96546a8e9871 提示, remove /data0/docker/containers/96546a8e9871f07c79abba4ef4818beed76c006e6d254839dbedb00641815075/mounts/shm: device or resource busy

解决:

查看所有挂载的设备

# grep docker /proc/*/mountinfo

截取设备的进程id

 # grep docker /proc/*/mountinfo | grep 96546a8e9871f07c79abba4ef4818beed76c006e6d254839dbedb00641815075 | awk -F':' '{print $1}' | awk -F'/' '{print $3}'
30561
30561

kill进程

 # ps aux | grep 30561 | grep -v grep
named    30561  0.0  1.6 755328 135784 ?       Ssl   2018  11:21 /usr/sbin/named -u named -c /etc/named.conf
 # kill 30561

删除容器

 # docker rm 96546a8e9871
96546a8e9871

 

转载请注明:爱开源 » Error response from daemon: unable to remove filesystem for xxxx

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址