Symptom When try to delete container, it failed to remove and reportd below error: Error response from daemon: driver "overlay" failed to remove root filesystem for c9cb...0542: remove /var/lib/docker/overlay/81df...3026/merged: device or resource busy Solution Find out which process has mounted this busy mountpoint: /var/lib/docker/overlay/81dfae6c47d7919e91acb3947d2c2093d2e3549e16099279852796c7251d3026/merged $ sudo find /proc -maxdepth 2 -type f -name "mountinfo" -exec grep -nl 81dfae6c47d {} \; /proc/23512/mountinfo /proc/23513/mountinfo /proc/23610/mountinfo /proc/23612/mountinfo Check what’s the process according to above PID

Read More…

PROBLEM When try to delete container, it failed to remove and reportd below error: Error response from daemon: driver "overlay" failed to remove root filesystem for c9cbf0b588644f50d1fec80ba11fac493fb336900e174a4ffe521a30637a0542: remove /var/lib/docker/overlay/81dfae6c47d7919e91acb3947d2c2093d2e3549e16099279852796c7251d3026/merged: device or resource busy WORKAROUND Find out which process has mounted this busy mountpoint: /var/lib/docker/overlay/81dfae6c47d7919e91acb3947d2c2093d2e3549e16099279852796c7251d3026/merged $ sudo find /proc -maxdepth 2 -type f -name "mountinfo" -exec grep -nl 81dfae6c47d {} \; /proc/23512/mountinfo /proc/23513/mountinfo /proc/23610/mountinfo /proc/23612/mountinfo Check what’s the process according to above PID

Read More…

Golang学习资料

2017-11-17

Go语言编程(部分内容过期) The way to go