\u8fc1\u79fb\u6570\u636e<\/strong><\/div>\n\r\n\u3010\u505cdocker\u3011\r\n# systemctl stop docker\r\n \r\n\u3010\u521b\u5efa\u65b0\u7684docker\u76ee\u5f55\u3011\r\n# mkdir -p \/home\/docker\/lib\r\n \r\n\u3010\u8fc1\u79fb \/var\/lib\/docker \u76ee\u5f55\u3011\r\n(\u6ce8\uff1a\u53ef\u76f4\u63a5mv\uff0c\u786e\u4fdd\u78c1\u76d8\u591f\u5927\uff09\r\n# rsync -avz \/var\/lib\/docker \/home\/docker\/lib\/ \r\n \r\n\u3010\u589e\u52a0\u914d\u7f6e\u3011\r\n\u67e5\u770b \/etc\/systemd\/system\/docker.service.d\/devicemapper.conf\u662f\u5426\u5b58\u5728\u3002\u5982\u679c\u4e0d\u5b58\u5728\uff0c\u5c31\u65b0\u5efa\u3002\r\n# mkdir -p \/etc\/systemd\/system\/docker.service.d\/\r\n# vi \/etc\/systemd\/system\/docker.service.d\/devicemapper.conf\r\n (\u6ce8\uff1adevicemapper.conf \u589e\u52a0\u914d\u7f6e\uff1a\u540c\u6b65\u7684\u65f6\u5019\u628a\u7236\u6587\u4ef6\u5939\u4e00\u5e76\u540c\u6b65\u8fc7\u6765\uff0c\u5b9e\u9645\u4e0a\u7684\u76ee\u5f55\u5e94\u5728 \/home\/docker\/lib\/docker )\r\n[Service]\r\nExecStart=\r\nExecStart=\/usr\/bin\/dockerd --graph=\/home\/docker\/lib\/docker\r\n \r\n\u3010\u91cd\u65b0\u52a0\u8f7d docker\u3011 \r\n# systemctl daemon-reload\r\n# systemctl restart docker\r\n# systemctl enable docker\r\n \r\n\u3010\u68c0\u67e5docker info\u3011\r\n# docker info | grep \"Docker Root Dir\"\r\n\u662f\u5426\u53d8\u66f4\u4e3a\uff1a \/home\/docker\/lib\/docker\r\n \r\n\u3010\u68c0\u67e5\u955c\u50cf\u3011\r\n# docker images\r\n \r\n\u3010\u6e05\u7406\u539f\u6570\u636e\u3011\r\n\u786e\u5b9a\u5bb9\u5668\u6ca1\u95ee\u9898\u540e\u5220\u9664\/var\/lib\/docker\/\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u3002\r\n# rm -rf \/var\/lib\/docker\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"# du -hs \/var\/lib\/docker\/ 237G \/var\/lib\/docker\/ # docke […]<\/p>\n","protected":false},"author":362,"featured_media":170013,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-231103","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/231103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=231103"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/231103\/revisions"}],"predecessor-version":[{"id":231106,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/231103\/revisions\/231106"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/170013"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=231103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=231103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=231103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}