{"id":10148,"date":"2024-09-16T23:22:01","date_gmt":"2024-09-16T15:22:01","guid":{"rendered":"http:\/\/999.zuizhuai.cn\/?p=10148"},"modified":"2024-09-16T23:22:01","modified_gmt":"2024-09-16T15:22:01","slug":"%e7%be%a4%e6%99%96%e3%80%81%e6%9e%81%e7%a9%ba%e9%97%b4%e3%80%81%e5%a8%81%e8%81%94%e9%80%9a%e3%80%81%e9%93%81%e5%a8%81%e9%a9%ac%e7%ad%89nas%e7%9a%84docker-compose%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=10148","title":{"rendered":"\u7fa4\u6656\u3001\u6781\u7a7a\u95f4\u3001\u5a01\u8054\u901a\u3001\u94c1\u5a01\u9a6c\u7b49nas\u7684docker-compose\u90e8\u7f72"},"content":{"rendered":"<p style=\"text-align: left\"><span style=\"letter-spacing: 0.578px;text-align: left\">\u9274\u4e8e\u6211\u4e4b\u524d\u6587\u7ae0\u90e8\u7f72\u7684\u5bb9\u5668\u4f7f\u7528\u7684\u90fd\u662fdocker compose\uff0c\u56e0\u4e3a\u4ed6\u90e8\u7f72\u548c\u91cd\u5efa\u771f\u7684\u7b80\u5355\u65b9\u4fbf\uff0c\u8c03\u8bd5\u597d\u4e86\u540e\uff0c\u4e0d\u540cnas\u53ea\u8981\u8c03\u6574\u4e0b\u672c\u5730\u6620\u5c04\u76ee\u5f55\u5730\u5740\u5c31\u884c\uff0c\u800c\u4e14\u5bf9\u4e8e\u6302\u63a5\u591a\u4e2a\u5bb9\u5668\u7684\u9879\u76ee\u6765\u8bf4\u66f4\u662f\u6709\u5fc5\u8981\u3002<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"letter-spacing: 0.578px;text-align: left\">\u4f46\u4ee5\u524d\u4ecb\u7ecd\u90fd\u662f\u4ee5\u7fa4\u6656\u4e3a\u4f8b\uff0c\u9274\u4e8e\u6709\u4e9b\u540c\u5b66\u7559\u8a00\u8bf4\u5728\u5176\u4ed6nas\u4e0b\u8fd8\u4e0d\u4f1a\u90e8\u7f72docker compose\uff0c\u672c\u6b21\u4ecb\u7ecd\u4e0b\u5728\u591a\u79cdnas\u673a\u4e0a\u5982\u4f55\u4f7f\u7528docker compose\u3002<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"letter-spacing: 0.578px;text-align: left\">1\u3001docker compose\u76f4\u63a5\u754c\u9762\u5316\u90e8\u7f72\u6d89\u53ca\u7fa4\u6656\u3001\u94c1\u5a01\u9a6c\u3002<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"letter-spacing: 0.578px;text-align: left\">2\u3001docker compose\u95f4\u63a5\u754c\u9762\u5316\u90e8\u7f72\u6d89\u53ca\uff1a\u6781\u7a7a\u95f4\u3001\u5a01\u8054\u901a\u3001\u7eff\u8054\u3001\u897f\u90e8\u6570\u636e\u3001\u6d77\u5eb7\u5a01\u89c6\u3001\u8054\u60f3\u7b49\u5176\u4ed6\u6709docker\u7684nas\uff0c\u53ef\u4ee5ssh\u901a\u8fc7\u547d\u4ee4\u884c\u90e8\u7f72\uff0c\u4f46\u662f\u4e0d\u65b9\u4fbf\uff0c\u8fd9\u91cc\u4ecb\u7ecd\u901a\u8fc7portainer-ce\u6216\u8005dockge\u90e8\u7f72docker compose<br \/>\n<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"letter-spacing: 0.578px;text-align: left\">3\u3001\u534e\u4e3a\u5b58\u50a8\u7b49\u76ee\u524ddocker\u90fd\u6ca1\u6709\uff0c\u4e0d\u6d89\u53ca<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"letter-spacing: 0.578px;text-align: left\">\u56e0\u4e3a\u6211\u6ca1\u90a3\u4e48\u591anas\uff0c\u6709\u4e9b\u6211\u80fd\u627e\u5230\u7684\u5c31\u76f4\u63a5\u8d34\u7f51\u5740<\/span><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0\" \/>\n<p style=\"text-align: left\"><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.578px\">\u9996\u5148\u4ecb\u7ecd\u4e0bdokcer compose\uff0c\u4ee5\u4e0b\u5f15\u7528\u81ea\u767e\u5ea6\uff0c\u90fd\u662fssh\u547d\u4ee4\u884c\u7684\u6a21\u5f0f\u90e8\u7f72docker compose\u7684\u547d\u4ee4\uff0c\u53ef\u4ee5\u4e0d\u770b<\/span><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10991\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030657967.png\" width=\"128\" height=\"128\" alt=\"20240918030657967\" title=\"20240918030657967\" \/><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.578px\">\uff1a<\/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<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"css\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__selector-tag\">Docker<\/span> <span class=\"code-snippet__selector-tag\">Compose<\/span>\u662f\u4e00\u4e2a\u7528\u4e8e\u5b9a\u4e49\u548c\u8fd0\u884c\u591a\u5bb9\u5668<span class=\"code-snippet__selector-tag\">Docker<\/span>\u5e94\u7528\u7a0b\u5e8f\u7684\u5de5\u5177\u3002\u200c\u5b83\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u4e00\u4e2a<span class=\"code-snippet__selector-tag\">docker-compose<\/span><span class=\"code-snippet__selector-class\">.yml<\/span>\u6587\u4ef6\u6765\u914d\u7f6e\u548c\u542f\u52a8\u591a\u4e2a\u5bb9\u5668\uff0c\u200c\u8fd9\u4e9b\u5bb9\u5668\u53ef\u4ee5\u534f\u540c\u5de5\u4f5c\uff0c\u200c\u5f62\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u200c\u8fd9\u4e2a\u6587\u4ef6\u5b9a\u4e49\u4e86\u6240\u9700\u7684\u670d\u52a1\u3001\u200c\u7f51\u7edc\u548c\u5377\uff0c\u200c\u4f7f\u5f97\u90e8\u7f72\u548c\u7ba1\u7406\u5bb9\u5668\u53d8\u5f97\u7b80\u5355\u548c\u9ad8\u6548\u3002\u200c<\/span><\/code><code><span class=\"code-snippet_outer\">\u4f7f\u7528<span class=\"code-snippet__selector-tag\">Docker<\/span>\u00a0<span class=\"code-snippet__selector-tag\">Compose<\/span>\u7684\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a<\/span><\/code><code><span class=\"code-snippet_outer\">\u200c<\/span><\/code><code><span class=\"code-snippet_outer\">\u7f16\u5199<span class=\"code-snippet__selector-tag\">docker-compose<\/span><span class=\"code-snippet__selector-class\">.yml<\/span>\u6587\u4ef6\uff1a\u200c\u8fd9\u4e2a\u6587\u4ef6\u5b9a\u4e49\u4e86\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u6240\u6709\u670d\u52a1\u3001\u200c\u7f51\u7edc\u914d\u7f6e\u548c\u5377\u6302\u8f7d\u3002\u200c\u4f8b\u5982\uff0c\u200c\u4e00\u4e2a\u670d\u52a1\u53ef\u80fd\u5305\u62ec\u4e00\u4e2a<span class=\"code-snippet__selector-tag\">Web<\/span>\u670d\u52a1\u5668\u548c\u4e00\u4e2a\u6570\u636e\u5e93\u670d\u52a1\u5668\uff0c\u200c\u5b83\u4eec\u901a\u8fc7<span class=\"code-snippet__selector-tag\">Docker<\/span> <span class=\"code-snippet__selector-tag\">Compose<\/span>\u5b9a\u4e49\u7684\u7f51\u7edc\u8fdb\u884c\u901a\u4fe1\u3002\u200c<\/span><\/code><code> <\/code><code><span class=\"code-snippet_outer\">\u542f\u52a8\u670d\u52a1\uff1a\u200c\u901a\u8fc7\u8fd0\u884c<span class=\"code-snippet__selector-tag\">docker-compose<\/span> <span class=\"code-snippet__selector-tag\">up<\/span>\u547d\u4ee4\uff0c\u200c\u53ef\u4ee5\u6839\u636e<span class=\"code-snippet__selector-tag\">docker-compose<\/span><span class=\"code-snippet__selector-class\">.yml<\/span>\u6587\u4ef6\u4e2d\u7684\u5b9a\u4e49\u542f\u52a8\u6240\u6709\u670d\u52a1\u3002\u200c\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u521b\u5efa\u5e76\u542f\u52a8\u5bb9\u5668\uff0c\u200c\u5e76\u5c06\u5b83\u4eec\u8fde\u63a5\u5230\u5b9a\u4e49\u7684\u7f51\u7edc\u3002\u200c<\/span><\/code><code> <\/code><code><span class=\"code-snippet_outer\">\u7ba1\u7406\u670d\u52a1\uff1a\u200c<span class=\"code-snippet__selector-tag\">Docker<\/span> <span class=\"code-snippet__selector-tag\">Compose<\/span>\u63d0\u4f9b\u4e86\u547d\u4ee4\u6765\u7ba1\u7406\u670d\u52a1\uff0c\u200c\u5982<span class=\"code-snippet__selector-tag\">docker-compose<\/span> <span class=\"code-snippet__selector-tag\">ps<\/span>\uff08\u200c\u5217\u51fa\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668\uff09\u200c\u3001\u200c<span class=\"code-snippet__selector-tag\">docker-compose<\/span> <span class=\"code-snippet__selector-tag\">down<\/span>\uff08\u200c\u505c\u6b62\u5e76\u5220\u9664\u6240\u6709\u5bb9\u5668\uff09\u200c\u7b49\u3002\u200c\u8fd9\u4e9b\u547d\u4ee4\u4f7f\u5f97\u5bb9\u5668\u7684\u7ba1\u7406\u548c\u7ef4\u62a4\u53d8\u5f97\u7b80\u5355\u3002\u200c<\/span><\/code><code> <\/code><code><span class=\"code-snippet_outer\">\u6269\u5c55\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff1a\u200c\u901a\u8fc7<span class=\"code-snippet__selector-tag\">Docker<\/span> <span class=\"code-snippet__selector-tag\">Compose<\/span>\uff0c\u200c\u53ef\u4ee5\u8f7b\u677e\u5730\u6dfb\u52a0\u3001\u200c\u5220\u9664\u6216\u66f4\u65b0\u670d\u52a1\uff0c\u200c\u800c\u65e0\u9700\u624b\u52a8\u7ba1\u7406\u6bcf\u4e2a\u5bb9\u5668\u7684\u8be6\u7ec6\u914d\u7f6e\u3002\u200c\u8fd9\u5bf9\u4e8e\u9700\u8981\u5feb\u901f\u8fed\u4ee3\u548c\u9891\u7e41\u66f4\u65b0\u7684\u9879\u76ee\u975e\u5e38\u6709\u7528\u3002\u200c<\/span><\/code><code> <\/code><code><span class=\"code-snippet_outer\">\u4e00\u952e\u90e8\u7f72\uff1a\u200c<span class=\"code-snippet__selector-tag\">Docker<\/span> <span class=\"code-snippet__selector-tag\">Compose<\/span>\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u4e00\u952e\u90e8\u7f72\u542f\u52a8\u6240\u6709\u7684\u5bb9\u5668\uff0c\u200c\u8fd9\u5bf9\u4e8e\u5feb\u901f\u90e8\u7f72\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\u975e\u5e38\u6709\u7528\u3002\u200c<\/span><\/code><code> <\/code><code><span class=\"code-snippet_outer\">\u7248\u672c\u63a7\u5236\uff1a\u200c\u901a\u8fc7\u7248\u672c\u63a7\u5236\u5de5\u5177\uff08\u200c\u5982<span class=\"code-snippet__selector-tag\">Git<\/span>\uff09\u200c\u7ba1\u7406<span class=\"code-snippet__selector-tag\">docker-compose<\/span><span class=\"code-snippet__selector-class\">.yml<\/span>\u6587\u4ef6\uff0c\u200c\u53ef\u4ee5\u8f7b\u677e\u8ddf\u8e2a\u548c\u56de\u6eda\u5230\u4e4b\u524d\u7684\u914d\u7f6e\u72b6\u6001\uff0c\u200c\u63d0\u9ad8\u4e86\u5f00\u53d1\u7684\u53ef\u8ffd\u6eaf\u6027\u548c\u5b89\u5168\u6027\u3002\u200c<\/span><\/code><code> <\/code><code><span class=\"code-snippet_outer\">\u540e\u53f0\u8fd0\u884c\uff1a\u200c\u4f7f\u7528<span class=\"code-snippet__selector-tag\">docker-compose<\/span> <span class=\"code-snippet__selector-tag\">up<\/span> <span class=\"code-snippet__selector-tag\">-d<\/span>\u547d\u4ee4\u53ef\u4ee5\u5728\u540e\u53f0\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\uff0c\u200c\u4e0d\u4f1a\u963b\u585e\u547d\u4ee4\u884c\u754c\u9762\uff0c\u200c\u9002\u5408\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u670d\u52a1\u3002\u200c<\/span><\/code><code> <\/code><code><span class=\"code-snippet_outer\">\u91cd\u65b0\u6784\u5efa\u548c\u91cd\u65b0\u521b\u5efa\u5bb9\u5668\uff1a\u200c\u4f7f\u7528<span class=\"code-snippet__selector-tag\">docker-compose<\/span> <span class=\"code-snippet__selector-tag\">up<\/span> <span class=\"code-snippet__selector-tag\">--build<\/span>\u53ef\u4ee5\u91cd\u65b0\u6784\u5efa\u670d\u52a1\u7684\u955c\u50cf\uff0c\u200c\u800c<span class=\"code-snippet__selector-tag\">docker-compose<\/span> <span class=\"code-snippet__selector-tag\">up<\/span> <span class=\"code-snippet__selector-tag\">--force-recreate<\/span>\u53ef\u4ee5\u5f3a\u5236\u91cd\u65b0\u521b\u5efa\u6240\u6709\u5bb9\u5668\uff0c\u200c\u5373\u4f7f\u5b83\u4eec\u5df2\u7ecf\u5b58\u5728\u3002<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: left\">\u200c<\/p>\n<p style=\"text-align: left\">\u200c\u4e00\u3001\u7fa4\u6656<\/p>\n<p style=\"text-align: left\">1\u3001\u5728docker\u6587\u4ef6\u5939\u6216\u8005\u5176\u4ed6\u76ee\u5f55\u65b0\u5efa\u597d\u5b58\u653ecompose.yaml\u53ca\u5bb9\u5668\u5bf9\u5e94\u6620\u5c04\u76ee\u5f55\u7ed3\u6784\u7684\u6587\u4ef6\u5939<\/p>\n<p style=\"text-align: left\">2\u3001\u6309\u7167\u5982\u56fe\u6240\u793a\u5728container manager\u5957\u4ef6\u91cc\u521b\u5efa\u9879\u76ee\u5c31\u5b8c\u6210\u4e86<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10992\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030657518.png\" width=\"1080\" height=\"544\" alt=\"20240918030657518\" title=\"20240918030657518\" \/><\/p>\n<p style=\"text-align: left\">\u4e8c\u3001\u94c1\u5a01\u9a6c<\/p>\n<p style=\"text-align: left\">\u94c1\u5a01\u9a6c<span style=\"letter-spacing: 0.578px;text-align: left\">docker compose<\/span>\u652f\u6301\u7c7b\u4f3c\u7fa4\u6656\u7684\u76f4\u63a5\u754c\u9762\u5316\u90e8\u7f72\uff0c\u6709\u9700\u8981\u7684\u76f4\u63a5\u770b\u4e0b\u9762\u94fe\u63a5<\/p>\n<blockquote class=\"js_blockquote_wrap\" style=\"text-align: left\" data-type=\"2\" data-url=\"\" data-author-name=\"\" data-content-utf8-length=\"39\" data-source-title=\"https:\/\/baijiahao.baidu.com\/s?id=1792582169262063412&amp;wfr=spider&amp;for=pc\">\n<section class=\"js_blockquote_digest\">\n<p style=\"text-align: left\">\u94c1\u5a01\u9a6cDocker Manager 2.0\u4e0a\u7ebf\uff1a\u4e00\u7ad9\u5f0f\u7ba1\u7406Docker \u8d85\u65b9\u4fbf<\/p>\n<\/section>\n<section class=\"blockquote_info js_blockquote_source\" data-json=\"%7B%22type%22%3A%22out%22%2C%22source%22%3A%22url%22%2C%22digest%22%3A%22%3Cp%3E%E9%93%81%E5%A8%81%E9%A9%ACDocker%26nbsp%3BManager%26nbsp%3B2.0%E4%B8%8A%E7%BA%BF%EF%BC%9A%E4%B8%80%E7%AB%99%E5%BC%8F%E7%AE%A1%E7%90%86Docker%26nbsp%3B%E8%B6%85%E6%96%B9%E4%BE%BF%3C%2Fp%3E%22%2C%22digestLen%22%3A39%2C%22text%22%3A%22%22%2C%22article%22%3A%7B%7D%2C%22hasReportOverSize%22%3Afalse%2C%22editorReportData%22%3A%5B%7B%22id%22%3A%22122333%22%2C%22key%22%3A%2276%22%2C%22len%22%3A1%7D%5D%2C%22from%22%3A%22https%3A%2F%2Fbaijiahao.baidu.com%2Fs%3Fid%3D1792582169262063412%26wfr%3Dspider%26for%3Dpc%22%7D\"><span class=\"blockquote_other\">https:\/\/baijiahao.baidu.com\/s?id=1792582169262063412&amp;wfr=spider&amp;for=pc<\/span><\/section>\n<\/blockquote>\n<p style=\"text-align: left\">\u4e09\u3001\u5176\u4ed6nas\u90e8\u7f72portainer-ce\uff08\u793e\u533a\u7248\uff09<\/p>\n<p style=\"text-align: left\"><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.034em\">\u5f00\u6e90\u4ee3\u7801\u9875\uff1ahttps:\/\/hub.docker.com\/r\/portainer\/portainer-ce<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.034em\">\u56e0\u4e3a\u8981\u94fe\u63a5docker.sock\u6587\u4ef6\uff0c\u5efa\u8baessh\u547d\u4ee4\u884c\u6a21\u5f0f\u90e8\u7f72<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.034em\">ssh\u547d\u4ee4\u884c\u4e3a\uff08\u672c\u4eba\u7528\u7684\u662fMobaXterm\u8fdb\u884c\u8fde\u63a5\uff0c\u5927\u5bb6\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6ssh\u8f6f\u4ef6\uff0c\u5982\uff1aPutty\uff0cXShell\uff0cFinalShell\u7b49\uff09\uff0c\u8fd9\u91cc\u6211\u4e0d\u7528\u539f\u7248\u6620\u50cf\uff0c\u6211\u4f7f\u7528\u7684\u662f\u53e6\u5916\u4e00\u4e2a\u5927\u4f6c\u7684\u6c49\u5316\u7248\uff08\u6620\u50cf\u53d1\u5e03\u5730\u5740\uff1ahttps:\/\/registry.hub.docker.com\/r\/6053537\/portainer-ce\/\uff09\uff1a<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.034em\">\u547d\u4ee4\u884c\u9700\u8981\u81ea\u5df1\u8c03\u6574\u7684\u5c31\u662f1\u4e2a\u7aef\u53e3\u6620\u5c04\uff1a9000\uff1b1\u4e2a\u76ee\u5f55\u6620\u5c04\u4e3anas\u5bf9\u5e94\u7684\u5b58\u50a8\u76ee\u5f55\uff0c \u9700\u81ea\u884c\u4fee\u6539<\/span><span style=\", helvetica, arial, sans-serif;font-size: 16px;letter-spacing: 0.578px;text-align: left\"><span style=\"letter-spacing: 0.578px;text-align: left\"><span style=\"letter-spacing: 0.578px;, helvetica, arial, sans-serif;font-size: 16px;text-align: left\">\uff08<\/span><span style=\"letter-spacing: 0.578px;, helvetica, arial, sans-serif;font-size: 16px;text-align: left\"><span style=\", menlo, courier, monospace;font-size: 14px;letter-spacing: 0.578px\">\/volume1\/docker\/portain<\/span><\/span><span style=\"letter-spacing: 0.578px;, menlo, courier, monospace;font-size: 14px;text-align: left\">er\/data<\/span><span style=\"letter-spacing: 0.578px;, menlo, courier, monospace;font-size: 14px;text-align: left\">\uff09\uff0c<\/span><\/span><\/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<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"kotlin\"><code><span class=\"code-snippet_outer\">docker\u00a0run\u00a0-d\u00a0--restart=always\u00a0--name=<span class=\"code-snippet__string\">\"portainer\"<\/span>\u00a0-p\u00a0<span class=\"code-snippet__number\">9000<\/span>:<span class=\"code-snippet__number\">9000<\/span>\u00a0-v\u00a0\/volume1\/docker\/portainer\/<span class=\"code-snippet__keyword\">data<\/span>:\/<span class=\"code-snippet__keyword\">data<\/span>\u00a0-v\u00a0\/<span class=\"code-snippet__keyword\">var<\/span>\/run\/docker.sock:\/<span class=\"code-snippet__keyword\">var<\/span>\/run\/docker.sock\u00a0<span class=\"code-snippet__number\">6053537<\/span>\/portainer-ce:latest<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: left\">\u90e8\u7f72\u5b8c\u6210<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10993\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030659962.png\" width=\"809\" height=\"85\" alt=\"20240918030659962\" title=\"20240918030659962\" \/><\/p>\n<p style=\"text-align: left\"><span style=\", sans-serif, simhei, simsun;font-size: 16px;letter-spacing: normal;text-align: start\">9000\u4e3aweb\u7ba1\u7406\u7aef\u53e3\uff0c\u8bbf\u95eenasip:9000<br \/>\n<\/span><\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10994\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030700167.png\" width=\"1080\" height=\"630\" alt=\"20240918030700167\" title=\"20240918030700167\" \/><\/p>\n<p style=\"text-align: left\">\u8bbe\u7f6e\u5bc6\u7801\u9700\u5927\u4e8e12\u4e2a\u5b57\u7b26\u3002\u3002<\/p>\n<p style=\"text-align: left\">\u70b9\u5f00\u59cb<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10995\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030702836.png\" width=\"901\" height=\"801\" alt=\"20240918030702836\" title=\"20240918030702836\" \/><\/p>\n<p style=\"text-align: left\">\u70b9\u8fdb\u53bb<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10996\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030703826.png\" width=\"1080\" height=\"388\" alt=\"20240918030703826\" title=\"20240918030703826\" \/><\/p>\n<p style=\"text-align: left\">\u9009\u5806\u6808\uff0c\u6dfb\u52a0\u5806\u6808<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10997\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030705883.png\" width=\"1080\" height=\"255\" alt=\"20240918030705883\" title=\"20240918030705883\" \/><\/p>\n<p style=\"text-align: left\">\u628acompose.yaml\u7684\u5185\u5bb9\u590d\u5236\u8fdb\u53bb\u5c31\u884c\u4e86<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10998\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030706169.png\" width=\"1080\" height=\"552\" alt=\"20240918030706169\" title=\"20240918030706169\" \/><\/p>\n<p style=\"text-align: left\">\u6700\u4e0b\u9762\u70b9\u51fb\u90e8\u7f72\uff0c\u53f3\u4e0a\u89d2\u51fa\u73b0\u90e8\u7f72\u6210\u529f<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10999\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030708370.png\" width=\"401\" height=\"129\" alt=\"20240918030708370\" title=\"20240918030708370\" \/><\/p>\n<p style=\"text-align: left\">\u5728\u5806\u6808\u6216\u8005\u5bb9\u5668\u91cc\u5c31\u80fd\u770b\u5230\u521a\u624d\u90e8\u7f72\u7684\u5bb9\u5668\u4e86<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11000\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030709414.png\" width=\"1080\" height=\"369\" alt=\"20240918030709414\" title=\"20240918030709414\" \/><\/p>\n<p style=\"text-align: left\"><span style=\", sans-serif, simhei, simsun;font-size: 16px;letter-spacing: normal;text-align: start\">\u5b9e\u6d4b\u5bb9\u5668\u4e5f\u662f\u542f\u52a8\u6210\u529f<\/span><\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11001\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030710954.png\" width=\"1080\" height=\"546\" alt=\"20240918030710954\" title=\"20240918030710954\" \/><\/p>\n<p style=\"text-align: left\">\n<p style=\"text-align: left\"><span style=\", sans-serif, simhei, simsun;font-size: 16px;letter-spacing: normal;text-align: start\">\u56db\u3001\u5176\u4ed6nas\u90e8\u7f72Dockge<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"color: #4d4d4d;font-family: -apple-system, SF UI Text, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif, SimHei, SimSun\"><span style=\"font-size: 16px;letter-spacing: normal\">\u4eca\u5929\u6ca1\u65f6\u95f4\u4e86\uff0c\u8fd9\u4e2a\u4e0b\u6b21\u518d\u8bb2<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10991\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030657967.png\" width=\"128\" height=\"128\" alt=\"20240918030657967\" title=\"20240918030657967\" \/>\uff0c\u8fd9\u4e2a\u6620\u50cf\u4f5c\u7528\u548c\u4e0a\u9762\u90a3\u4e2a\u662f\u4e00\u6837\u7684\uff0c\u53ea\u662f\u53e6\u5916\u4e00\u4e2a\u5927\u4f6c\u89c9\u5f97\u4e0a\u9762\u7684portainer\u6709\u65f6\u4f1a\u51fa\u73b0\u4e9b\u5c0f\u95ee\u9898\uff0c\u5c31\u81ea\u5df1\u53e6\u5916\u5199\u4e86\u4e2a\u3002\u3002\u3002\u3002<\/span><\/span><\/p>\n<section class=\"mp_profile_iframe_wrp\"><\/section>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9274\u4e8e\u6211\u4e4b\u524d\u6587\u7ae0\u90e8\u7f72\u7684\u5bb9\u5668\u4f7f\u7528\u7684\u90fd\u662fdocker compose\uff0c\u56e0\u4e3a\u4ed6\u90e8\u7f72\u548c\u91cd\u5efa\u771f\u7684\u7b80\u5355\u65b9\u4fbf\uff0c\u8c03\u8bd5\u597d\u4e86\u540e\uff0c\u4e0d\u540cnas\u53ea\u8981\u8c03\u6574\u4e0b\u672c\u5730\u6620\u5c04\u76ee\u5f55\u5730\u5740\u5c31\u884c\uff0c\u800c\u4e14\u5bf9\u4e8e\u6302\u63a5\u591a\u4e2a\u5bb9\u5668\u7684\u9879\u76ee\u6765\u8bf4\u66f4\u662f\u6709\u5fc5\u8981\u3002 \u4f46\u4ee5\u524d\u4ecb\u7ecd\u90fd\u662f\u4ee5\u7fa4\u6656\u4e3a\u4f8b\uff0c\u9274\u4e8e\u6709\u4e9b\u540c\u5b66\u7559\u8a00\u8bf4\u5728\u5176&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[159,94,271],"topic":[],"class_list":["post-10148","post","type-post","status-publish","format-standard","hentry","category-128","tag-docker","tag-nas","tag-271"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/10148","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=10148"}],"version-history":[{"count":0,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/10148\/revisions"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10148"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10148"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=10148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}