{"id":10068,"date":"2024-09-16T23:15:58","date_gmt":"2024-09-16T15:15:58","guid":{"rendered":"http:\/\/999.zuizhuai.cn\/?p=10068"},"modified":"2025-10-30T07:15:51","modified_gmt":"2025-10-29T23:15:51","slug":"%e9%a3%9e%e7%89%9bnas%e4%b8%ad%e9%83%a8%e7%bd%b2docker%e7%89%88%e7%9a%84bt%e5%ae%9d%e5%a1%94%e5%92%8c1panel","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=10068","title":{"rendered":"\u98de\u725bnas\u4e2d\u90e8\u7f72docker\u7248\u7684bt\u5b9d\u5854\u548c1panel"},"content":{"rendered":"<p style=\"letter-spacing: 0.578px;margin-bottom: 24px;margin-top: 0px;text-align: left\" data-pid=\"0BMG1Zgc\"><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.578px;text-align: left\">\u5148\u8865\u5145\u4e0b\u4e4b\u524d\u4ecb\u7ecd\u7684\u5b9d\u5854\u9762\u677f\u76f4\u88c5nas\u673a\u4e0a\u7684docker\u5e94\u7528\u64cd\u4f5c<\/span><\/p>\n<blockquote class=\"js_blockquote_wrap\" style=\"letter-spacing: 0.578px\" data-type=\"1\" data-url=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU1Mzk1NzgyMw==&amp;mid=2247484606&amp;idx=1&amp;sn=1e9f44b9ae49a57d7a30b2858c21df4c&amp;chksm=fbeba46ecc9c2d7891ef63e441d4428dcdbc10e76c541fbf95b1a48d62e0a160c0eb8a29bab0#rd\" data-author-name=\"\u7ea2\u85af\u4e38\u5b50\" data-content-utf8-length=\"9\" data-source-title=\"\u98de\u725bnas\u4e2d\u90e8\u7f72bt\u5b9d\u5854\u9762\u677f\u6559\u7a0b\">\n<section class=\"js_blockquote_digest\">\u98de\u725bnas\u76f4\u88c5\u5b9d\u5854<\/p>\n<\/section>\n<section class=\"blockquote_info js_blockquote_source\" data-json=\"%7B%22type%22%3A%22inner%22%2C%22source%22%3A%22biz%22%2C%22digest%22%3A%22%3Cp%3E%E9%A3%9E%E7%89%9Bnas%E7%9B%B4%E8%A3%85%E5%AE%9D%E5%A1%94%3C%2Fp%3E%22%2C%22digestLen%22%3A9%2C%22text%22%3A%22%22%2C%22article%22%3A%7B%22title%22%3A%22%E9%A3%9E%E7%89%9Bnas%E4%B8%AD%E9%83%A8%E7%BD%B2bt%E5%AE%9D%E5%A1%94%E9%9D%A2%E6%9D%BF%E6%95%99%E7%A8%8B%22%2C%22url%22%3A%22http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzU1Mzk1NzgyMw%3D%3D%26mid%3D2247484606%26idx%3D1%26sn%3D1e9f44b9ae49a57d7a30b2858c21df4c%26chksm%3Dfbeba46ecc9c2d7891ef63e441d4428dcdbc10e76c541fbf95b1a48d62e0a160c0eb8a29bab0%23rd%22%2C%22nickname%22%3A%22%E7%BA%A2%E8%96%AF%E4%B8%B8%E5%AD%90%22%2C%22authorName%22%3A%22%E7%BA%A2%E8%96%AF%E4%B8%B8%E5%AD%90%22%7D%2C%22hasReportOverSize%22%3Afalse%2C%22editorReportData%22%3A%5B%7B%22id%22%3A%22122333%22%2C%22key%22%3A%2275%22%2C%22len%22%3A1%7D%2C%7B%22id%22%3A%22122333%22%2C%22key%22%3A%2276%22%2C%22len%22%3A1%7D%2C%7B%22id%22%3A%22122333%22%2C%22key%22%3A%2278%22%2C%22len%22%3A1%7D%5D%7D\"><span class=\"blockquote_biz\">\u7ea2\u85af\u4e38\u5b50\uff0c\u516c\u4f17\u53f7\uff1a\u7ea2\u85af\u4e38\u5b50<a rel=\"nofollow\" class=\"blockquote_article\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU1Mzk1NzgyMw==&amp;mid=2247484606&amp;idx=1&amp;sn=1e9f44b9ae49a57d7a30b2858c21df4c&amp;chksm=fbeba46ecc9c2d7891ef63e441d4428dcdbc10e76c541fbf95b1a48d62e0a160c0eb8a29bab0#rd\">\u98de\u725bnas\u4e2d\u90e8\u7f72bt\u5b9d\u5854\u9762\u677f\u6559\u7a0b<\/a><\/span><\/section>\n<\/blockquote>\n<h1 style=\"margin-bottom: 24px;letter-spacing: 0.578px;text-align: center\"><strong><span style=\"font-size: 20px;text-decoration: underline\">\u76f4\u88c5\u7248\u5b9d\u5854docker\u5e94\u7528\u64cd\u4f5c<\/span><\/strong><\/h1>\n<p><span style=\"text-decoration: none\"><strong><span style=\"text-decoration: none;font-size: 20px\"><strong style=\", arial, sans-serif;font-size: 16px;letter-spacing: 1.6px;text-align: left\">\u5b9d\u5854\u7684\u6210\u54c1docker\u5e94\u7528\u5f88\u591a\uff0c\u6709139\u4e2a\uff0c\u5b9d\u5854\u81ea\u8eab\u7684\u514d\u8d39\u548c\u6536\u8d39\u7684\u5176\u4ed6\u5e94\u7528\u4e5f\u5f88\u591a\uff0c\u548cdocker\u5e94\u7528\u5408\u8ba1\u6709296\u4e2a\u3002\u5b9d\u5854\u4e0bdocker\u5e94\u7528\u5b89\u88c5\u4e5f\u6781\u4e3a\u65b9\u4fbf\uff0c\u53ef\u4ee5\u7ed3\u54081panel\u8865\u5145\u98de\u725bnas\u5e94\u7528\u7684\u4e0d\u8db3<\/strong><\/span><\/strong><\/span><\/p>\n<p style=\"letter-spacing: 0.578px\">1\u3001\u9009\u62e9\u5b9d\u5854\u5de6\u4fa7docker\u83dc\u5355\uff0c\u6216\u8005\u8f6f\u4ef6\u5546\u5e97\u83dc\u5355\u91cc\u5b89\u88c5\u4e5f\u884c\uff08\u5efa\u8bae\u76f4\u63a5\u8f6f\u4ef6\u5546\u5e97\u5b89\u88c5\uff0c\u56e0\u4e3a\u540e\u9762\u914d\u7f6e\u8fd8\u8981\u5728\u8fd9\u91cc\u914d\u7f6e\uff09\uff0c\u968f\u4fbf\u9009\u4e00\u4e2adocker\u5e94\u7528\u70b9\u51fb\u5b89\u88c5<\/p>\n<p style=\"letter-spacing: 0.578px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655062\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151532258.png\" width=\"1080\" height=\"512\" alt=\"20251030151532258\" title=\"20251030151532258\" \/><\/p>\n<p style=\"letter-spacing: 0.578px;text-align: left\">\u8fd9\u91cc\u5b89\u88c5firefox\u4e3e\u4f8b<\/p>\n<p style=\"letter-spacing: 0.578px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655063\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151533137.png\" width=\"1080\" height=\"596\" alt=\"20251030151533137\" title=\"20251030151533137\" \/><\/p>\n<p style=\"letter-spacing: 0.578px;text-align: left\">\u5b89\u88c5\u597d\u540e\uff0c\u5176\u5b9e\u8fd9\u91cc\u53ea\u662fpull\u5b8c\u6210<\/p>\n<p style=\"letter-spacing: 0.578px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655064\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151533531.png\" width=\"1080\" height=\"397\" alt=\"20251030151533531\" title=\"20251030151533531\" \/><\/p>\n<p style=\"letter-spacing: 0.578px;text-align: left\">\u5728\u8f6f\u4ef6\u7684\u8bbe\u7f6e\u91cc\u8fd8\u9700\u8981\u5b89\u88c5\u4e00\u4e0b<\/p>\n<p style=\"letter-spacing: 0.578px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655065\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151534747.png\" width=\"1080\" height=\"519\" alt=\"20251030151534747\" title=\"20251030151534747\" \/><\/p>\n<p style=\"letter-spacing: 0.578px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655066\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151535878.png\" width=\"886\" height=\"809\" alt=\"20251030151535878\" title=\"20251030151535878\" \/><\/p>\n<p style=\"letter-spacing: 0.578px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655067\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151535289.png\" width=\"792\" height=\"685\" alt=\"20251030151535289\" title=\"20251030151535289\" \/><\/p>\n<p style=\"letter-spacing: 0.578px;text-align: left\">\u8fd9\u6837\u624d\u662f\u5b89\u88c5\u597d\u4e86\uff0c\u5728\u8bbf\u95ee\u4fe1\u606f\u91cc\u5fc5\u987b\u52fe\u9009\u201c\u5141\u8bb8\u5916\u90e8\u8bbf\u95ee\u201d<\/p>\n<p style=\"letter-spacing: 0.578px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655068\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151536409.png\" width=\"804\" height=\"677\" alt=\"20251030151536409\" title=\"20251030151536409\" \/><\/p>\n<p style=\"letter-spacing: 0.578px;text-align: left\">\u8f93\u5165IP\uff1a5800\u548c\u8bbf\u95ee\u5bc6\u7801\u540e\uff0c\u5c31\u6b63\u5e38\u8fdb\u5165firefox\u9875\u9762\u4e86<\/p>\n<p style=\"letter-spacing: 0.578px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655069\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151537411.png\" width=\"1080\" height=\"622\" alt=\"20251030151537411\" title=\"20251030151537411\" \/><\/p>\n<p style=\"letter-spacing: 0.578px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655070\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151537650.png\" width=\"1080\" height=\"574\" alt=\"20251030151537650\" title=\"20251030151537650\" \/><\/p>\n<p style=\"letter-spacing: 0.578px;text-align: left\">\u76f4\u88c5\u5b9d\u5854\u7684\u597d\u5904\u662fdocker\u5e94\u7528\u5b89\u88c5\u975e\u5e38\u7b80\u4fbf\uff0c\u7f3a\u70b9\u662f\u76ee\u524d\u53cd\u4ee3\u670d\u52a1\u548c\u98de\u725bnas\u8fd8\u4e0d\u517c\u5bb9<\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0\" \/>\n<p style=\"letter-spacing: 0.578px;text-align: center\"><strong style=\"font-size: 16px;letter-spacing: 0.578px\"><span style=\"font-size: 20px;text-decoration: underline\">docker\u7248\u5b9d\u5854\u5b89\u88c5<\/span><\/strong><\/p>\n<p style=\"letter-spacing: 0.578px\"><span style=\"letter-spacing: 0.578px;text-align: left\">\u56e0<\/span><span style=\"letter-spacing: 0.578px;text-align: left\">\u4e3a\u98de\u725b\u4f7f\u7528\u7684\u662fnginx\u53cd\u4ee3\uff0c\u5982\u679c\u4f60\u4e0d\u662f\u8981\u7528\u5b9d\u5854\u91cc\u7684docker\u5e94\u7528\u800c\u662f\u8981\u5efa\u7ad9\u7684\u8bdd\uff0c\u5b9d\u5854\u91cc\u518d\u5b89\u88c5nginx\u5c31\u4f1a\u51b2\u7a81\u5bfc\u81f4\u98de\u725b\u9875\u9762\u6253\u4e0d\u5f00\uff0c\u6240\u4ee5\u672c\u6b21\u4ecb\u7ecd\u4e0bdocker\u4e0b\u5b89\u88c5\u5b9d\u5854\uff0c\u5b89\u88c5\u66f4\u7eaf\u51c0\u4e0e\u5176\u4ed6\u5e94\u7528\u4e0d\u6253\u6270\uff0c\u4f46\u662fdocker\u7248\u5b9d\u5854\u91cc\u7684docker\u5e94\u7528\u4f7f\u7528\u4e0d\u4e86<\/span><\/p>\n<p style=\"letter-spacing: 0.578px\"><span style=\"letter-spacing: 0.578px;text-align: left\">\u5b98\u65b9\u6559\u7a0b\uff1ahttps:\/\/www.bt.cn\/bbs\/thread-79499-1-1.html<\/span><\/p>\n<p style=\"letter-spacing: 0.578px;margin-bottom: 24px;margin-top: 0px\"><span style=\"font-size: 17px\"><strong style=\", arial, sans-serif;font-size: 16px;letter-spacing: 1.6px;text-align: left;line-height: 1.75\"><strong style=\", arial, sans-serif;font-size: 16px;letter-spacing: 1.6px;text-align: left;line-height: 1.75\"><span style=\"letter-spacing: 0.578px\"><strong style=\", arial, sans-serif;font-size: 16px;letter-spacing: 1.6px;text-align: left;line-height: 1.75\">\u672c\u6b21\u90e8\u7f72\u5b89\u88c5\u73af\u5883\u8fd8\u662f\u98de\u725bnas\u7684docker<\/strong><\/span><\/strong><\/strong><\/span><\/p>\n<p>\u672c\u6b21\u4f7f\u7528\u5b98\u65b9\u6620\u50cf\uff0c\u6ca1\u6709\u4f7f\u7528fresh\u7248\uff0c\u7528\u7684\u662f\u5e26\u4e86\u57fa\u7840\u4f9d\u8d56\u5305\u7684lib\u7248\u672c\uff0c\u56e0\u4e3alnmp\u548clamp\u7248\u53ef\u80fd\u73af\u5883\u56e0\u4e3a\u4e2a\u4eba\u673a\u5668\u4e0d\u540c\u539f\u56e0\u5bfc\u81f4\u5b89\u88c5\u540emysql\u3001nginx\u3001php\u65e0\u6cd5\u4f7f\u7528\uff0c\u9700\u8981\u5378\u8f7d\u91cd\u88c5\uff0c\u5c31\u4e0d\u5982\u76f4\u63a5\u7528lib\u7248<\/p>\n<p>\u5982\u679c\u6015\u7aef\u53e3\u592a\u591a\u51b2\u7a81\uff0c\u5c31\u7528bridge\u5185\u7f51\uff0c\u81ea\u5df1\u5f00\u653e\u7aef\u53e3\u53ef\u80fd\u4f1a\u9ebb\u70e6\u4e00\u70b9\uff0c\u5982\u679cdocker\u7aef\u53e3\u4e0d\u591a\u5c31\u7528host\u4e5f\u884c\u3002<\/p>\n<p style=\"letter-spacing: 0.578px;margin-bottom: 24px;margin-top: 0px\"><span style=\"font-size: 17px\"><strong style=\", arial, sans-serif;font-size: 16px;letter-spacing: 1.6px;text-align: left;line-height: 1.75\"><strong style=\", arial, sans-serif;font-size: 16px;letter-spacing: 1.6px;text-align: left;line-height: 1.75\"><span style=\"letter-spacing: 0.578px\"><strong style=\", arial, sans-serif;font-size: 16px;letter-spacing: 1.6px;text-align: left;line-height: 1.75\">docker compose\u4ee3\u7801\u5982\u4e0b\uff08bridge\u7f51\u7edc\uff09\uff1a<\/strong><\/span><\/strong><\/strong><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"properties\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">services<\/span>:<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">baota<\/span>:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__attr\">restart<\/span>: <span class=\"code-snippet__string\">always<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__attr\">container_name<\/span>: <span class=\"code-snippet__string\">baota<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__attr\">ports<\/span>:<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__meta\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-\u00a018888<\/span>:<span class=\"code-snippet__string\">8888\u00a0#\u9762\u677f\u7aef\u53e3<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__meta\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-\u00a010022<\/span>:<span class=\"code-snippet__string\">22\u00a0#SSH<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__meta\">-<\/span> <span class=\"code-snippet__string\">10443:443 #\u7f51\u7ad9\u670d\u52a1<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__meta\">-<\/span> <span class=\"code-snippet__string\">10080:80 #\u7f51\u7ad9\u670d\u52a1<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__meta\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-\u00a013306<\/span>:<span class=\"code-snippet__string\">3306 #mysql<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__meta\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-\u00a010888<\/span>:<span class=\"code-snippet__string\">888\u00a0#phpmyadmin<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__meta\">-<\/span> <span class=\"code-snippet__string\">11111:11111 #\u5efa\u7ad9\u7aef\u53e3<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__attr\">volumes<\/span>:<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__meta\">-<\/span> <span class=\"code-snippet__string\">.\/website_data:\/www\/wwwroot<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__meta\">-<\/span> <span class=\"code-snippet__string\">.\/mysql_data:\/www\/server\/data<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__meta\">-<\/span> <span class=\"code-snippet__string\">.\/vhost:\/www\/server\/panel\/vhost<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__meta\">-<\/span> <span class=\"code-snippet__string\">\/var\/run\/docker.sock:\/var\/run\/docker.sock<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__attr\">image<\/span>: <span class=\"code-snippet__string\">btpanel\/baota:7.9.4-lib<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0#\u9ed8\u8ba4\u5b89\u5168\u5165\u5e93ip:18888\/btpanel<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0#\u9ed8\u8ba4\u7528\u6237\u540dbtpanel<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0#\u9ed8\u8ba4\u5bc6\u7801btpaneldocker<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0#\u9ed8\u8ba4ssh\u5bc6\u7801btpaneldocker<\/span><\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: left\"><strong style=\", arial, sans-serif;font-size: 16px;letter-spacing: 1.6px;text-align: left;line-height: 1.75\"><strong style=\"letter-spacing: 1.6px;line-height: 1.75\">docker compose\u4ee3\u7801\u5982\u4e0b\uff08host\u7f51\u7edc\uff09\uff1a<\/strong><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"properties\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">services<\/span>:<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">baota<\/span>:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__attr\">restart<\/span>: <span class=\"code-snippet__string\">always<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__attr\">container_name<\/span>: <span class=\"code-snippet__string\">baota<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__attr\">network_mode<\/span>: <span class=\"code-snippet__string\">host<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__attr\">volumes<\/span>:<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__meta\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-\u00a0.\/website_data<\/span>:<span class=\"code-snippet__string\">\/www\/wwwroot<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__meta\">-<\/span> <span class=\"code-snippet__string\">.\/mysql_data:\/www\/server\/data<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__meta\">-<\/span> <span class=\"code-snippet__string\">.\/vhost:\/www\/server\/panel\/vhost<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__meta\">-<\/span> <span class=\"code-snippet__string\">\/var\/run\/docker.sock:\/var\/run\/docker.sock<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__attr\">image<\/span>: <span class=\"code-snippet__string\">btpanel\/baota:7.9.4-lib<\/span><\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: left\">\n<p style=\"text-align: left\">\u6211\u8fd9\u91cc\u7528\u7684bridge\u7f51\u7edc\uff0c\u8fd0\u884c\u6210\u529f\u540e\uff0c\u8bbf\u95eeip:18888\/btpanel\uff0c\u7528\u6237\u540d\u5bc6\u7801\u5982\u4e0a\u6240\u793a<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655071\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151538223.png\" width=\"1080\" height=\"614\" alt=\"20251030151538223\" title=\"20251030151538223\" \/><\/p>\n<p style=\"letter-spacing: 0.578px;margin-bottom: 24px;margin-top: 0px\"><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.578px\">\u767b\u5f55\u540e\u5148\u628a\u7248\u672c\u4fee\u590d\u5230\u6700\u65b09.1.0\uff0c\u5b9d\u5854\u521a\u8fd0\u884c\u8d77\u6765\u4f1a\u6162\u4e00\u70b9<\/span><\/p>\n<p style=\"letter-spacing: 0.578px;margin-bottom: 24px;margin-top: 0px\"><span style=\"letter-spacing: 0.578px;text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655072\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151538681.png\" width=\"985\" height=\"437\" alt=\"20251030151538681\" title=\"20251030151538681\" \/><\/span><\/p>\n<p style=\"letter-spacing: 0.578px;margin-bottom: 24px;margin-top: 0px\"><span style=\"letter-spacing: 0.578px;text-align: left\">\u7136\u540e\u5728\u9996\u9875\uff0c\u6709\u9700\u8981\u5efa\u7ad9\u7684\u63a8\u8350\u5b89\u88c5\u91cclnmp\u6216\u8005lamp\uff0c\u6211\u8fd9\u91cc\u5b89\u88c5lnmp\uff0c\u9009\u62e9\u7f16\u8bd1\u5b89\u88c5\uff01<\/span><\/p>\n<p>\u5b89\u88c5\u6210\u529f\u540e\u5efa\u7ad9\u4e00\u952e\u90e8\u7f72\u4e0b,\u8fd9\u91cc\u76f4\u63a5\u4f7f\u7528\u6211\u524d\u9762\u9884\u7559\u7684\u7aef\u53e3<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655073\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151539425.png\" width=\"1080\" height=\"642\" alt=\"20251030151539425\" title=\"20251030151539425\" \/><\/p>\n<p style=\"text-align: left\">\u5efa\u7ad9\u6210\u529f\uff0c\u8bbf\u95ee\u8bd5\u4e00\u4e0b<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655074\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151540606.png\" width=\"1080\" height=\"634\" alt=\"20251030151540606\" title=\"20251030151540606\" \/><\/p>\n<p style=\"text-align: left\">\u8bbf\u95ee\u4e5f\u6ca1\u6709\u95ee\u9898<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655075\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151540753.png\" width=\"1080\" height=\"717\" alt=\"20251030151540753\" title=\"20251030151540753\" \/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655076\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151546670.png\" width=\"1080\" height=\"679\" alt=\"20251030151546670\" title=\"20251030151546670\" \/><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0\" \/>\n<p>\u5b9d\u5854\u7684docker\u670d\u52a1\u56e0\u4e3a\u6ca1\u6709\u9884\u88c5\uff0c\u6211\u5b89\u88c5\u4e0d\u6210\u529f\uff0c\u63d0\u793aD-bus\u7f3a\u5c11\u6743\u9650\uff0c\u4f30\u8ba1\u662fsystemd\u6743\u9650\u7684\u539f\u56e0<\/p>\n<p style=\"text-align: center\"><strong style=\"letter-spacing: 0.578px;text-align: center;font-size: 16px\"><span style=\"font-size: 20px;text-decoration: underline\">docker\u72481panel\u5b89\u88c5<\/span><\/strong><\/p>\n<p><span style=\"letter-spacing: 0.578px\">\u5148\u8865\u5145\u8bf4\u660e\u4e0b\u76f4\u88c5\u76841panel\u7684\u7aef\u53e3\u6700\u597d\u662f10000\u4ee5\u4e0a\uff0c\u5426\u5219\u53ef\u80fd\u7aef\u53e3\u51b2\u7a81\u5bfc\u81f4\u6253\u4e0d\u5f00web\u7ba1\u7406\u9875\u9762\uff0cssh\u4fee\u6539\u7aef\u53e3\u7684\u8bdd\u75281pctl update\uff0c\u7136\u540e1panel\u00a0update port\u4fee\u6539\u7aef\u53e3<\/span><\/p>\n<p>\u5b89\u88c5docker\u7248\u76841panel\u53ef\u4ee5\u89e3\u51b3\u98de\u725bnas\u91cd\u542f\u540e1panel\u65e0\u6cd5\u987a\u5229\u91cd\u542f\u7684\u95ee\u9898\uff0cnas\u76f4\u88c5\u76841panel\u5b98\u65b9\u4e5f\u662f\u8bf4\u76ee\u524d\u6ca1\u9002\u914dnas\u3002<\/p>\n<p>nas\u76f4\u88c5\u76841panel\u5378\u8f7dssh\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"properties\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">1pctl<\/span> <span class=\"code-snippet__string\">uninstall<\/span><\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655077\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151547953.png\" width=\"815\" height=\"222\" alt=\"20251030151547953\" title=\"20251030151547953\" \/><\/p>\n<p>\u8fd9\u6b21\u4f7f\u7528\u76841panel\u7684docker\u6620\u50cf\u6211\u770b\u4e86\u4e0b1panel\u91cc\u7684docker\u670d\u52a1\u662f\u5728\u9884\u88c5\u597d\u7684\uff0c\u5c31\u6700\u597d\u662f\u7528host\u7f51\u7edc\u90e8\u7f72\uff0cdocker compose\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"ruby\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__symbol\">services:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">  <span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__symbol\">panel:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__symbol\">container_name:<\/span> <span class=\"code-snippet__number\">1<\/span>panel <span class=\"code-snippet__comment\"># \u5bb9\u5668\u540d<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__symbol\">restart:<\/span> always<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__symbol\">network_mode:<\/span> <span class=\"code-snippet__string\">\"host\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0<span class=\"code-snippet__symbol\">privileged:<\/span>\u00a0<span class=\"code-snippet__literal\">true<\/span>\u00a0<span class=\"code-snippet__comment\">#\u00a0\u62e5\u6709\u5bb9\u5668\u5185\u547d\u4ee4\u6267\u884c\u7684\u9ad8\u6743\u9650<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__symbol\">volumes:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      - <span class=\"code-snippet__regexp\">\/var\/run<\/span><span class=\"code-snippet__regexp\">\/docker.sock:\/var<\/span><span class=\"code-snippet__regexp\">\/run\/docker<\/span>.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      - <span class=\"code-snippet__regexp\">\/var\/lib<\/span><span class=\"code-snippet__regexp\">\/docker\/volumes<\/span><span class=\"code-snippet__symbol\">:\/var\/lib\/docker\/volumes<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      - <span class=\"code-snippet__regexp\">\/opt:\/opt<\/span>  <span class=\"code-snippet__comment\"># \u6587\u4ef6\u5b58\u50a8\u6620\u5c04<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      - <span class=\"code-snippet__regexp\">\/root:\/root<\/span>  <span class=\"code-snippet__comment\"># \u53ef\u9009\u7684\u6587\u4ef6\u5b58\u50a8\u6620\u5c04<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__symbol\">environment:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      - TZ=Asia\/Shanghai  <span class=\"code-snippet__comment\"># \u65f6\u533a\u8bbe\u7f6e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__symbol\">image:<\/span> moelin\/<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__symbol\">panel:<\/span>latest<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__symbol\">labels:<\/span>  <\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__symbol\">createdBy:<\/span> <span class=\"code-snippet__string\">\"Apps\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u9ed8\u8ba4\u7aef\u53e3\uff1a10086<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u9ed8\u8ba4\u8d26\u6237\uff1a1panel<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u9ed8\u8ba4\u5bc6\u7801\uff1a1panel_password<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u9ed8\u8ba4\u5165\u53e3\uff1aentrance<\/span><\/span><\/code><\/pre>\n<\/section>\n<p>\u5b89\u88c5\u6210\u529f\u540e\uff0c\u8bbf\u95eehttp:\/\/ip:10086\/entrance\u767b\u5f55<\/p>\n<p style=\"text-align: left\">1panel\u8bd5\u4e86\u4e0b\uff0cdocker\u5e94\u7528\u53ef\u4ee5\u5b89\u88c5\u6210\u529f,\u5efa\u7ad9\u4e5f\u6210\u529f\uff0c1panel\u9ed8\u8ba4\u662f\u968fnas\u7cfb\u7edfdocker\u670d\u52a1\u542f\u52a8\u7684\uff0c\u8bbf\u95ee\u4e5f\u66f4\u65b9\u4fbf\u4e86<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655078\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151547555.png\" width=\"1080\" height=\"616\" alt=\"20251030151547555\" title=\"20251030151547555\" \/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655079\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151548327.png\" width=\"1080\" height=\"459\" alt=\"20251030151548327\" title=\"20251030151548327\" \/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655080\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151549555.png\" width=\"1080\" height=\"667\" alt=\"20251030151549555\" title=\"20251030151549555\" \/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655081\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151549443.png\" width=\"1080\" height=\"572\" alt=\"20251030151549443\" title=\"20251030151549443\" \/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655082\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2025\/10\/20251030151550454.png\" width=\"1080\" height=\"529\" alt=\"20251030151550454\" title=\"20251030151550454\" \/><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0\" \/>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;text-align: center\">\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;text-align: center\"><strong style=\", arial, sans-serif;font-size: 16px;letter-spacing: 1.6px;text-align: left;line-height: 1.75\">\u00a0\u5982\u679c\u6587\u7ae0\u5bf9\u60a8\u6709\u5e2e\u52a9\uff0c<\/strong><\/p>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;text-align: center\"><strong style=\", arial, sans-serif;font-size: 16px;letter-spacing: 1.6px;text-align: left;line-height: 1.75\">\u6b22\u8fce\u70b9\u8d5e\u3001\u5173\u6ce8\u3001\u5206\u4eab<\/strong><\/p>\n<section class=\"mp_profile_iframe_wrp\" style=\"text-align: center\"><\/section>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u8865\u5145\u4e0b\u4e4b\u524d\u4ecb\u7ecd\u7684\u5b9d\u5854\u9762\u677f\u76f4\u88c5nas\u673a\u4e0a\u7684docker\u5e94\u7528\u64cd\u4f5c \u98de\u725bnas\u76f4\u88c5\u5b9d\u5854 \u7ea2\u85af\u4e38\u5b50\uff0c\u516c\u4f17\u53f7\uff1a\u7ea2\u85af\u4e38\u5b50\u98de\u725bnas\u4e2d\u90e8\u7f72bt\u5b9d\u5854\u9762\u677f\u6559\u7a0b \u76f4\u88c5\u7248\u5b9d\u5854docker\u5e94\u7528\u64cd\u4f5c \u5b9d\u5854\u7684\u6210\u54c1docker\u5e94\u7528\u5f88\u591a\uff0c\u6709139\u4e2a\uff0c\u5b9d\u5854\u81ea\u8eab\u7684\u514d\u8d39\u548c\u6536\u8d39&#8230;<\/p>\n","protected":false},"author":1,"featured_media":655062,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[133],"tags":[142,159,94,220,287],"topic":[],"class_list":["post-10068","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dazahui","tag-1panel","tag-docker","tag-nas","tag-220","tag-os"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/10068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10068"}],"version-history":[{"count":2,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/10068\/revisions"}],"predecessor-version":[{"id":655083,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/10068\/revisions\/655083"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/media\/655062"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10068"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10068"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=10068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}