{"id":563038,"date":"2023-03-21T13:43:51","date_gmt":"2023-03-21T05:43:51","guid":{"rendered":"http:\/\/4563.org\/?p=563038"},"modified":"2023-03-21T13:43:51","modified_gmt":"2023-03-21T05:43:51","slug":"%e6%9c%89%e6%87%82docker%e7%9a%84%e5%90%97-%e8%af%b7%e6%95%99%e4%b8%aa%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=563038","title":{"rendered":"\u6709\u61c2docker\u7684\u5417 \u8bf7\u6559\u4e2a\u95ee\u9898"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>beihu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u6709\u61c2docker\u7684\u5417 \u8bf7\u6559\u4e2a\u95ee\u9898<\/h3>\n<p>  \t\t\u5728openwrt\u4e0a\u7528docker\u5b89\u88c5next-terminal <\/p>\n<p>  \u6700\u540e\u7ed3\u675f\u7684\u65f6\u5019\u62a5\u9519error while creating mount source path &#8216;\/etc\/localtime&#8217;: mkdir \/etc\/localtime: file exists<\/p>\n<p>  N1\u76d2\u5b50\u4e0a\u7684openwrt\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>u78<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\trm -rf \/etc\/localtime\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>beihu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tu78 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2023-3-19 10:04<br \/>  rm -rf \/etc\/localtime<\/p>\n<p> \u8ba4\u771f\u7684\u5417\u5144\u5f1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Eric.c<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4ed6\u662f\u8ba4\u771f\u7684\uff0c\u4f60\u6015\u53ef\u4ee5\u5148\u5907\u4efd\u8fd9\u6587\u4ef6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5c0f\u4f19\u4f34<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u955c\u50cf\u6709\u95ee\u9898\u5427\uff0c\u5f53\u7136\uff0c@u78 \u7684\u65b9\u6cd5\u4e5f\u53ef\u4ee5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5948\u96c5\u4e3d<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u4e2a\u9519\u8bef\u901a\u5e38\u51fa\u73b0\u5728\u4f7f\u7528Docker\u6784\u5efa\u5bb9\u5668\u65f6\uff0c\u5176\u4e2d\u6d89\u53ca\u5230\u6302\u8f7d\u672c\u5730\u4e3b\u673a\u4e0a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u3002\u5b83\u8868\u793a\u5728\u521b\u5efa\u6302\u8f7d\u6e90\u8def\u5f84\/etc\/localtime\u65f6\u53d1\u751f\u4e86\u9519\u8bef\uff0c\u56e0\u4e3a\u8be5\u8def\u5f84\u5df2\u7ecf\u5b58\u5728\u3002\u53ef\u80fd\u7684\u539f\u56e0\u662f\u5148\u524d\u5df2\u7ecf\u8fdb\u884c\u8fc7\u7c7b\u4f3c\u7684\u6302\u8f7d\u64cd\u4f5c\u5e76\u4e14\u672a\u6b63\u786e\u6e05\u7406\u6302\u8f7d\u70b9\u3002\u89e3\u51b3\u65b9\u6cd5\u662f\u624b\u52a8\u5220\u9664\u8be5\u8def\u5f84\u5e76\u91cd\u65b0\u8fd0\u884cDocker\u6784\u5efa\u547d\u4ee4\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5220\u9664\u8be5\u8def\u5f84\uff1asudo rm -rf \/etc\/localtime\uff08\u8bf7\u6ce8\u610f\uff0c\u8be5\u547d\u4ee4\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\uff09\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>DearJohn<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tbeihu \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2023-3-19 10:24<br \/>  \u8ba4\u771f\u7684\u5417\u5144\u5f1f<\/p>\n<p> \u662f\u8ba4\u771f\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5fa1\u5742<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tbeihu \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2023-3-19 10:24<br \/>  \u8ba4\u771f\u7684\u5417\u5144\u5f1f<\/p>\n<p> rm -rf\u79fb\u9664\u6587\u4ef6\u6ca1\u95ee\u9898\uff0c\u4f46\u662f\u4e00\u5b9a\u8981\u8f93\u5bf9\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>beihu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5948\u96c5\u4e3d \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2023-3-19 11:27<br \/>  \u8fd9\u4e2a\u9519\u8bef\u901a\u5e38\u51fa\u73b0\u5728\u4f7f\u7528Docker\u6784\u5efa\u5bb9\u5668\u65f6\uff0c\u5176\u4e2d\u6d89\u53ca\u5230\u6302\u8f7d\u672c\u5730\u4e3b\u673a\u4e0a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u3002\u5b83\u8868\u793a\u5728\u521b\u5efa\u6302\u8f7d\u6e90\u8def\u5f84 &#8230;<\/p>\n<p> \u5220\u6389\u4e4b\u540e\u53c8\u62a5\u4e86\u65b0\u7684\u9519\u8bef<\/p>\n<p>  docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting &quot;\/etc\/localtime&quot; to rootfs at &quot;\/etc\/localtime&quot;: mount \/etc\/localtime:\/etc\/localtime (via \/proc\/self\/fd\/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5948\u96c5\u4e3d<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tbeihu \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2023-3-19 12:58<br \/>  \u5220\u6389\u4e4b\u540e\u53c8\u62a5\u4e86\u65b0\u7684\u9519\u8bef<\/p>\n<p>  docker: Error response from daemon: failed to create shim task: OCI runtim &#8230;<\/p>\n<p> \u95ee\u4e0b\u5176\u4ed6\u5927\u4f6c\u5427\uff0c\u8fd9\u4e2a\u4e0d\u77e5\u9053\u4ec0\u4e48\u95ee\u9898\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>beihu \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u6709\u61c2d&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/563038"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=563038"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/563038\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=563038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=563038"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=563038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}