<br />
<b>Warning</b>:  is_file(): open_basedir restriction in effect. File(/www/wwwroot/blog.lybua.top//index.php/wp-json/wp/v2/posts/47) is not within the allowed path(s): (/www/wwwroot/blog.lybua.top:/tmp/:/dev/shm/nginx-cache/wp) in <b>/www/wwwroot/blog.lybua.top/wp-content/plugins/jetpack-boost/app/modules/optimizations/page-cache/pre-wordpress/class-boost-cache-utils.php</b> on line <b>80</b><br />
{"id":47,"date":"2026-06-26T18:24:45","date_gmt":"2026-06-26T10:24:45","guid":{"rendered":"https:\/\/blog.lybua.top\/?p=47"},"modified":"2026-06-26T18:24:45","modified_gmt":"2026-06-26T10:24:45","slug":"docker%e5%ae%89%e8%a3%85%e6%98%93%e6%9c%89%e4%ba%91%ef%bc%88casaos%e5%ae%89%e8%a3%85%e6%98%93%e6%9c%89%e4%ba%91%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.lybua.top\/index.php\/2026\/06\/26\/docker%e5%ae%89%e8%a3%85%e6%98%93%e6%9c%89%e4%ba%91%ef%bc%88casaos%e5%ae%89%e8%a3%85%e6%98%93%e6%9c%89%e4%ba%91%ef%bc%89\/","title":{"rendered":"Docker\u5b89\u88c5\u6613\u6709\u4e91\uff08casaos\u5b89\u88c5\u6613\u6709\u4e91\uff09"},"content":{"rendered":"<article class=\"baidu_pl\">\n<div id=\"article_content\" class=\"article_content clearfix\">\n<div id=\"content_views\" class=\"htmledit_views atom-one-dark\">\n<div class=\"csdn-video-box\">\n<p>\u65e0\u6cd5\u62c9\u53d6\u6613\u6709\u4e91&amp;DDNSTO Docker\u955c\u50cf\uff1f<\/p>\n<\/div>\n<p>\u5b98\u65b9\u89c6\u9891<\/p>\n<p><span style=\"color: #3391E5\" class=\"new-words-blog\"><br \/>\n              Docker<br \/>\n              <\/span>\u65b9\u5f0f\u5b89\u88c5\u6613\u6709\u4e91\uff0c\u5305\u62ec\u5e76\u4e0d\u9650\u4e8eUnraid\/\u7231\u5feb\/\u7fa4\u6656\u7b49\uff0c\u53ea\u8981\u6709Docker\u7684\u8bbe\u5907\u90fd\u6210\uff0c\u5305\u62ec\u4e00\u4e9b<span class=\"words-blog hl-git-1\">Linux\u53d1\u884c\u7248<\/span>\u7b49\u3002<\/p>\n<p>\u94c1\u5a01\u9a6c\uff1a\u9996\u5148\u5728\u5e94\u7528\u4e2d\u5fc3\u91cc<span style=\"color: #FC5531\" class=\"new-words-blog\"><br \/>\n              \u5b89\u88c5Docker <i style=\"background-image: url(https:\/\/i-operation.csdnimg.cn\/images\/e7c3df7a602f4267be505af7ecfc3f88.png);\" alt=\"\u5b89\u88c5Docker\" class=\"words-blog-icon\"><\/i><br \/>\n              <\/span>(TOS 4.0\u53ca\u66f4\u9ad8\u7684\u7cfb\u7edf)\uff0c\u7136\u540e\u5728\u63a7\u5236\u9762\u677f\u2014\u2014\u7ec8\u7aef\u4e0eSNMP\u2014\u2014\u542f\u7528SSH\u8bbf\u95ee\u3002\u7136\u540e\u7535\u8111\u5229\u7528<span class=\"words-blog hl-git-1\">putty<\/span>\u3001xshell\u7b49\u5de5\u5177\u767b\u5f55\u7ec8\u7aef\uff0c\u7136\u540e\u8f93\u5165\u201csudo -i\u201d\u548c\u5bc6\u7801\u83b7\u53d6\u4e34\u65f6ROOT\u6743\u9650\uff0c\u7136\u540e\u8fdb\u884c\u4e0b\u9762\u7684\u6559\u7a0b\u3002\u7fa4\u6656\uff1a\u5728\u63a7\u5236\u9762\u677f\u2014\u2014\u7ec8\u7aef\u673a\u4e0eSNMP\u2014\u2014\u542f\u7528SSH\u8bbf\u95ee\u3002\u7136\u540e\u7535\u8111\u5229\u7528putty\u3001xshell\u7b49\u5de5\u5177\u767b\u5f55\u7ec8\u7aef\uff0c\u7136\u540e\u8f93\u5165\u201csudo -i\u201d\u548c\u5bc6\u7801\u83b7\u53d6\u4e34\u65f6ROOT\u6743\u9650\uff0c\u7136\u540e\u8fdb\u884c\u4e0b\u9762\u7684\u6559\u7a0b\u3002<\/p>\n<p><span style=\"color: #FC5531\" class=\"new-words-blog\"><br \/>\n              Linux <i style=\"background-image: url(https:\/\/i-operation.csdnimg.cn\/images\/e7c3df7a602f4267be505af7ecfc3f88.png);\" alt=\"Linux\" class=\"words-blog-icon\"><\/i><br \/>\n              <\/span>\u53d1\u884c\u7248\uff1a\u67d0\u4e9bLinux\u7cfb\u7edf\u53ef\u80fd\u9ed8\u8ba4\u4e0d\u81ea\u5e26Docker\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u7ec8\u7aef\u547d\u4ee4\u5b89\u88c5Docker\uff1a<\/p>\n<pre name=\"code\"><code>curl -sSL https:\/\/get.docker.com\/ | sh<\/code><\/pre>\n<pre name=\"code\"><code>sudo chmod 777 \/var\/run\/docker.sock<\/code><\/pre>\n<p><span class=\"words-blog hl-git-1\">Docker\u5b89\u88c5<\/span>\u5b8c\u6210\u540e\uff0c\u8fdb\u884c\u4e0b\u9762\u7684\u6559\u7a0b\u3002<\/p>\n<p>Docker\u5b89\u88c5\u6613\u6709\u4e91\u6559\u7a0b\u5f00\u59cb\uff1a<\/p>\n<p>1.\u7ec8\u7aef\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a(\u5148\u4e0d\u8981\u76f4\u63a5\u590d\u5236\uff0c\u770b\u4e0b\u9762\u7684\u8bf4\u660e)<\/p>\n<pre name=\"code\"><code>docker run -d \\\n    -p 8897:8897 \\\n    --network host \\\n    --name linkease \\\n    --restart unless-stopped \\\n    -v \/root\/linkease-data:\/linkease-data \\\n    -v \/root\/linkease-config:\/linkease-config \\\n    -v \/etc\/localtime:\/etc\/localtime:ro \\\n    -e PUID=&lt;uid for user&gt; \\\n    -e PGID=&lt;gid for user&gt; \\\n    linkease\/linkease:latest<\/code><\/pre>\n<p>PUID\/PGID\uff1a\u83b7\u53d6\u65b9\u5f0f\uff1a\u7ec8\u7aef\u8f93\u5165id\u5373\u53ef<\/p>\n<p style=\"text-align:center;\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/blog.lybua.top\/wp-content\/uploads\/2026\/06\/image_1782469442714.jpg?ssl=1\"><\/p>\n<p>\u6bd4\u5982\u4e0a\u56fe\u83b7\u53d6\u7684UID\u548cGID\u90fd\u662f0\u3002<\/p>\n<ul>\n<li>\n<p>\u6ce8\u610f\u8981\u66ff\u6362 &#8220;&lt;&gt;&#8221; \u91cc\u9762\u7684\u5185\u5bb9\uff0c\u4e14\u4e0d\u80fd\u51fa\u73b0 &#8220;&lt;&gt;&#8221;\u3002<\/p>\n<\/li>\n<li>\n<p>\u51c6\u5907\u5de5\u4f5c\u505a\u597d\u4e86\uff0c\u90a3\u6211\u7684\u7ec8\u7aef\u547d\u4ee4\u5c31\u662f\uff1a<\/p>\n<\/li>\n<li>\n<pre name=\"code\"><code>docker run -d \\\n    -p 8897:8897 \\\n    --network host \\\n    --name linkease \\\n    --restart unless-stopped \\\n    -v \/root\/linkease-data:\/linkease-data \\\n    -v \/root\/linkease-config:\/linkease-config \\\n    -v \/etc\/localtime:\/etc\/localtime:ro \\\n    -e PUID=0 \\\n    -e PGID=0 \\\n    linkease\/linkease:latest<\/code><\/pre>\n<p>Docker\u5728\u67d0\u4e9bLinux\u53d1\u884c\u7248\uff0c\u53ef\u80fd\u8981\u52a0\u4e0a\u201csudo\u201d\u524d\u7f00\u624d\u80fd\u8fd0\u884c\uff0c\u6309\u63d0\u793a\u8f93\u5165Linux\u7684\u5bc6\u7801\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<\/li>\n<li>\n<pre name=\"code\"><code>sudo docker run -d \\\n    -p 8897:8897 \\\n    --network host \\\n    --name linkease \\\n    --restart unless-stopped \\\n    -v \/root\/linkease-data:\/linkease-data \\\n    -v \/root\/linkease-config:\/linkease-config \\\n    -v \/etc\/localtime:\/etc\/localtime:ro \\\n    -e PUID=0 \\\n    -e PGID=0 \\\n    linkease\/linkease:latest<\/code><\/pre>\n<p>\u67d0\u4e9b\u7279\u6b8a\u7684Linux\u53d1\u884c\u7248\uff0c\u53ef\u80fd\u9009\u4e0d\u5230\u5b58\u50a8\u76ee\u5f55\uff0c\u8fd9\u6837\u5c31\u9700\u8981\u5355\u72ec\u6302\u8f7d\u51fa\u6765\uff1a<\/p>\n<\/li>\n<li>\n<p>\/mnt\/sda1:\/My-storage \u628a\u7cfb\u7edf\u7684mnt\/sda1(\u6839\u636e\u81ea\u8eab\u7cfb\u7edf\u8def\u5f84\u586b\u5199)\u786c\u76d8\u8def\u5f84\u6620\u5c04\u4e3a\/My-storage\uff0c\u4fbf\u4e8e\u540e\u9762\u7ed1\u5b9a\u6613\u6709\u4e91\u3002<\/p>\n<\/li>\n<li>\n<p>\u82e5\u662f\u591a\u4e2a\u786c\u76d8\u8def\u5f84\uff1a<\/p>\n<\/li>\n<li>\n<pre name=\"code\"><code>-v \/mnt\/sda1:\/My-storage \\\n    -v \/mnt\/sda2:\/My-storage1 \\\n    -v \/mnt\/sda3:\/My-storage2 \\\t<\/code><\/pre>\n<p>\u52a0\u4e0a\u81ea\u5b9a\u4e49\u6302\u8f7d\u8def\u5f84\u540e\u7684\u547d\u4ee4\uff1a<\/p>\n<\/li>\n<li>\n<pre name=\"code\"><code>sudo docker run -d \\\n    -p 8897:8897 \\\n    --network host \\\n    --name linkease \\\n    --restart unless-stopped \\\n    -v \/root\/linkease-data:\/linkease-data \\\n    -v \/root\/linkease-config:\/linkease-config \\\n    -v \/etc\/localtime:\/etc\/localtime:ro \\\n    -v \/mnt\/sda1:\/My-storage \\\n    -e PUID=0 \\\n    -e PGID=0 \\\n    linkease\/linkease:latest<\/code><\/pre>\n<p>2.\u5b89\u88c5\u540e\u7b2c\u4e00\u6b21\u6253\u5f00(\u8bbf\u95ee\u5730\u5740: http:\/\/docker\u8bbe\u5907ip:8897)\uff0c\u9700\u8981\u7ed1\u5b9a\u8bbe\u5907\uff0c\u8bf7\u67e5\u770b&nbsp;<a class=\"link-info\" href=\"https:\/\/doc.linkease.com\/zh\/guide\/linkease\/install\/cloud.html\" title=\"\u6613\u4e91\u7ed1\u5b9a\u6559\u7a0b\" rel=\"nofollow\" target=\"_top\">\u6613\u4e91\u7ed1\u5b9a\u6559\u7a0b<\/a><\/p>\n<\/li>\n<\/ul><\/div>\n<\/p><\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\u65e0\u6cd5\u62c9\u53d6\u6613\u6709\u4e91&amp;DDNSTO Docker\u955c\u50cf\uff1f \u5b98\u65b9\u89c6\u9891 Docker \u65b9\u5f0f\u5b89\u88c5\u6613\u6709\u4e91\uff0c\u5305\u62ec\u5e76\u4e0d\u9650\u4e8e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-wenzhang"],"_links":{"self":[{"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":1,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":48,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/posts\/47\/revisions\/48"}],"wp:attachment":[{"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lybua.top\/index.php\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}