{"id":218,"date":"2018-03-09T17:40:04","date_gmt":"2018-03-09T16:40:04","guid":{"rendered":"http:\/\/xpam.pl\/blog\/?p=218"},"modified":"2024-04-03T00:29:54","modified_gmt":"2024-04-02T22:29:54","slug":"centos-docker-unable-to-unmount-on-stop-start","status":"publish","type":"post","link":"https:\/\/xpam.pl\/blog\/?p=218","title":{"rendered":"Centos Docker unable to unmount on stop\/start"},"content":{"rendered":"<p>Error looks something like<\/p>\n<blockquote><p>Error response from daemon: driver \"overlay\" failed to remove root filesystem for 805c245dad451542b44bb1b58c60887fa98a64a61f2f0b8de32fa5b13ccc8ce4: remove \/var\/lib\/docker\/overlay\/8f666b802f418f4a3dc4a6cafbefa79afc81491a5cb23da8084dd14e33afbea0\/merged: device or resource busy<\/p><\/blockquote>\n<p>It usually appears when stopping and starting a container. It results in Docker container not being able to start or starts in a weird dead\/removed state. Issue is presumably fixed in Centos 7.4 as per this <a href=\"https:\/\/github.com\/moby\/moby\/issues\/22260\">github issue<\/a>, but a workaround exists:<\/p>\n<p>1. Grep by part of ID:<br \/>\n<code>grep docker \/proc\/*\/mountinfo | grep 8f66<\/code><br \/>\nit shows which process is holding up the mount in busy state<br \/>\n<code>\/proc\/31415\/mountinfo:...<\/code><br \/>\n2. Kill the process<br \/>\n<code>sudo kill 31415<\/code><\/p>\n<div class=\"wp-post-signature\">\r\n<br \/>\r\n<br \/>\r\n<img src='https:\/\/xpam.pl\/aaaaff.png' title='Moonie' \/> Cen<br \/>\r\n<a href='https:\/\/github.com\/cen1'>GitHub<\/a><br \/>\r\n<a href='https:\/\/eurobattle.net'>Eurobattle.net<\/a><br \/>\r\n<a href='https:\/\/lagabuse.com'>Lagabuse.com<\/a><br \/>\r\n<a href='https:\/\/bnetdocs.org'>Bnetdocs<\/a><br \/>\r\n<\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>Error looks something like Error response from daemon: driver \"overlay\" failed to remove root filesystem for 805c245dad451542b44bb1b58c60887fa98a64a61f2f0b8de32fa5b13ccc8ce4: remove \/var\/lib\/docker\/overlay\/8f666b802f418f4a3dc4a6cafbefa79afc81491a5cb23da8084dd14e33afbea0\/merged: device or resource busy It usually appears when stopping and starting a container. It results in Docker container not being able to start or starts in a weird dead\/removed state. Issue is presumably fixed in Centos [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,18],"tags":[],"class_list":["post-218","post","type-post","status-publish","format-standard","hentry","category-linux","category-script-magic"],"_links":{"self":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=218"}],"version-history":[{"count":3,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions"}],"predecessor-version":[{"id":537,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions\/537"}],"wp:attachment":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}