{"id":542,"date":"2021-10-08T02:29:00","date_gmt":"2021-10-08T02:29:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=542"},"modified":"2021-10-08T02:29:00","modified_gmt":"2021-10-08T02:29:00","slug":"542","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/10\/08\/542\/","title":{"rendered":"Portainer \u6c49\u5316\u7248: \u53ef\u89c6\u5316Docker\u7ba1\u7406\u754c\u9762"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/10\/2033465530.png\" alt=\"p.png\" title=\"p.png\"><\/p>\n<h2>Docker \u642d\u5efa \u6c49\u5316\u7248 Portainer\u53ef\u89c6\u5316\u754c\u9762<\/h2>\n<p>Portainer\u662fDocker\u7684\u56fe\u5f62\u5316\u7ba1\u7406\u5de5\u5177\uff0c\u63d0\u4f9b\u72b6\u6001\u663e\u793a\u9762\u677f\u3001\u5e94\u7528\u6a21\u677f\u5feb\u901f\u90e8\u7f72\u3001<br \/>\u5bb9\u5668\u955c\u50cf\u7f51\u7edc\u6570\u636e\u5377\u7684\u57fa\u672c\u64cd\u4f5c\uff08\u5305\u62ec\u4e0a\u4f20\u4e0b\u8f7d\u955c\u50cf\uff0c\u521b\u5efa\u5bb9\u5668\u7b49\u64cd\u4f5c\uff09\u3001\u4e8b\u4ef6\u65e5\u5fd7\u663e\u793a\u3001<br \/>\u5bb9\u5668\u63a7\u5236\u53f0\u64cd\u4f5c\u3001Swarm\u96c6\u7fa4\u548c\u670d\u52a1\u7b49\u96c6\u4e2d\u7ba1\u7406\u548c\u64cd\u4f5c\u3001\u767b\u5f55\u7528\u6237\u7ba1\u7406\u548c\u63a7\u5236\u7b49\u529f\u80fd\u3002<\/p>\n<h3>\u67e5\u8be2\u5f53\u524d\u6709\u54ea\u4e9bPortainer\u955c\u50cf\u4e2d\u6587\u7248<\/h3>\n<pre><code>docker search portainer-zh\n<\/code><\/pre>\n<h3>\u5b89\u88c5Docker\u53ef\u89c6\u5316\u754c\u9762Portainer<\/h3>\n<pre><code>docker run --name Portainer          \\r\n  --restart=always  -d -p 9000:9000  \\r\n  -v \/var\/run\/docker.sock:\/var\/run\/docker.sock  \\r\n  -v \/opt\/portainer_data:\/data        \\r\n  liuximeng520\/portainer-zh:2.6.1<\/code><\/pre>\n<h3>\u5220\u9664Portainer\u670d\u52a1<\/h3>\n<pre><code>docker rm  -f Portainer\ndocker rmi liuximeng520\/portainer-zh:2.6.1\n<\/code><\/pre>\n<hr \/>\n<h3>\u529f\u80fd\u56fe\u793a: \u641c\u7d22\u548c\u62c9\u53d6\u955c\u50cf\uff0c\u5bfc\u5165\u5bfc\u51fa\u955c\uff0c\u67e5\u770b\u955c\u50cf\u5386\u53f2\u4fe1\u606f<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/10\/889363682.webp\" alt=\"p1.webp\" title=\"p1.webp\"><\/p>\n<ul>\n<li>\u641c\u7d22\u548c\u62c9\u53d6\u955c\u50cf\uff0c\u5bfc\u5165\u5bfc\u51fa\u955c\u50cf<br \/><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/10\/4148351477.webp\" alt=\"p2.webp\" title=\"p2.webp\"><\/li>\n<li>\u5bfc\u51fa\u955c\u50cf-\u67e5\u770b\u955c\u50cf\u5386\u53f2\u4fe1\u606f<\/li>\n<\/ul>\n<h3>\u7f16\u8f91\u6216\u4e0a\u4f20Dockerfile\uff0c\u6784\u5efa\u955c\u50cf<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/10\/817995515.webp\" alt=\"p3.webp\" title=\"p3.webp\"><\/p>\n<h3>\u56fe\u5f62\u5316\u90e8\u7f72\u8fd8\u662f\u547d\u4ee4\u884c\u65b9\u4fbf<\/h3>\n<ul>\n<li>\u53ef\u4ee5SSH\u767b\u9646\u547d\u4ee4\u884c\u90e8\u7f72\uff0c\u7136\u540e\u56fe\u5f62\u5316\u67e5\u770b\u5b66\u4e60<\/li>\n<li>\u76f8\u5173\u6587\u7ae0: <a href=\"https:\/\/lyvba.com\/index.php\/archives\/11\/\">Docker \u642d\u5efaPortainer\u53ef\u89c6\u5316\u754c\u9762-\u535a\u5ba2Blog-Pt\u4e0b\u8f7d\u8f6f\u4ef6\u7b14\u8bb0<\/a>  <a href=\"https:\/\/lyvba.com\/index.php\/tag\/docker\/\">\u66f4\u591aDocker\u6587\u7ae0<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Docker \u642d\u5efa \u6c49\u5316\u7248 Portainer\u53ef\u89c6\u5316\u754c\u9762 Portainer\u662fDocker\u7684\u56fe\u5f62\u5316\u7ba1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[15],"class_list":["post-542","post","type-post","status-publish","format-standard","hentry","category-docker","tag-docker"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=542"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/542\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}