{"id":1721,"date":"2023-03-26T19:44:18","date_gmt":"2023-03-26T11:44:18","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1721"},"modified":"2023-04-23T21:36:25","modified_gmt":"2023-04-23T13:36:25","slug":"docker-container-visualization-graphic-tool-portainer","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/26\/docker-container-visualization-graphic-tool-portainer\/","title":{"rendered":"Docker\u5bb9\u5668\u53ef\u89c6\u5316\u56fe\u5f62\u5de5\u5177Portainer"},"content":{"rendered":"<h2>Portainer\u4ecb\u7ecd<\/h2>\n<p>Portainer\u662f\u4e00\u4e2a\u53ef\u89c6\u5316\u7684\u5bb9\u5668\u955c\u50cf\u7684\u56fe\u5f62\u7ba1\u7406\u5de5\u5177\uff0c\u5229\u7528Portainer\u53ef\u4ee5\u8f7b\u677e\u6784\u5efa\uff0c\u7ba1\u7406\u548c\u7ef4\u62a4Docker\u73af\u5883\u3002 \u800c\u4e14\u5b8c\u5168\u514d\u8d39\uff0c\u57fa\u4e8e\u5bb9\u5668\u5316\u7684\u5b89\u88c5\u65b9\u5f0f\uff0c\u65b9\u4fbf\u9ad8\u6548\u90e8\u7f72\u3002<\/p>\n<p>\u5b98\u65b9\u7ad9\u70b9\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.portainer.io\/\">https:\/\/www.portainer.io\/<\/a><\/p>\n<p><!-- more --><\/p>\n<h2>\u5b89\u88c5Portainer<\/h2>\n<p>\u5b98\u65b9\u5b89\u88c5\u8bf4\u660e\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.portainer.io\/installation\/\">https:\/\/www.portainer.io\/installation\/<\/a><\/p>\n<pre><code class=\"language-bash\">$ docker volume create portainer_data\n$ docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v \/var\/run\/docker.sock:\/var\/run\/docker.sock -v portainer_data:\/data portainer\/portainer-ce<\/code><\/pre>\n<pre><code class=\"language-bash\">[root@ubuntu1804 ~]#docker search portainer |head -n 3\nNAME                  DESCRIPTION                     STARS         OFFICIAL    AUTOMATED\nportainer\/portainer   Making Docker management easy. https:\/\/porta\u2026   1569              \nportainer\/agent       An agent used to manage all the resources in\u2026   54              0   [root@ubuntu1804 ~]#docker pull  portainer\/portainer\n\n[root@ubuntu1804 ~]#docker volume create portainer_data\nportainer_data\n[root@ubuntu1804 ~]#docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v \/var\/run\/docker.sock:\/var\/run\/docker.sock -v portainer_data:\/data portainer\/portainer\n20db26b67b791648c2ef6aee444a5226a9c897ebcf0160050e722dbf4a4906e3\n[root@ubuntu1804 ~]#docker ps \nCONTAINER ID        IMAGE                 COMMAND             CREATED             STATUS              PORTS                                            NAMES\n20db26b67b79        portainer\/portainer   &quot;\/portainer&quot;        5 seconds ago       Up 4 seconds        0.0.0.0:8000-&gt;8000\/tcp, 0.0.0.0:9000-&gt;9000\/tcp   portainer<\/code><\/pre>\n<h2>\u767b\u5f55\u548c\u4f7f\u7528Portainer<\/h2>\n<p>\u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/localhost:9000\">http:\/\/localhost:9000<\/a><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u4ee5\u4e0b\u754c\u9762\uff0c\u8bbe\u7f6eadmin\u7528\u6237\u5bc6\u7801\uff0c\u9700\u8981\u8f93\u5165\u4e24\u6b21\u76f8\u540c\u7684\u5bc6\u7801<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u767b\u5f55.png\" alt=\"Portainer\u767b\u5f55\" \/><\/p>\n<p>\u4ee5\u4e0b\u754c\u9762\u4e2d\uff0c\u9009\u62e9<code>Local<\/code>\uff0c\u518d\u70b9\u51fb<code>Connect<\/code><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u8fde\u63a5.png\" alt=\"Portainer\u8fde\u63a5\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u4e3b\u9875.png\" alt=\"Portainer\u4e3b\u9875\" \/><\/p>\n<h3>\u67e5\u770b\u4e3b\u673a\u4fe1\u606f<\/h3>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u4e3b\u673a\u4fe1\u606f.png\" alt=\"Portainer\u4e3b\u673a\u4fe1\u606f\" \/><\/p>\n<h3>\u521b\u5efaportainer\u7528\u6237<\/h3>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u521b\u5efa\u7528\u6237.png\" alt=\"Portainer\u521b\u5efa\u7528\u6237\" \/><\/p>\n<p>\u8f93\u5165\u65b0\u7528\u6237\u4fe1\u606f<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u8f93\u5165\u7528\u6237\u4fe1\u606f.png\" alt=\"Portainer\u8f93\u5165\u7528\u6237\u4fe1\u606f\" \/><\/p>\n<p>\u7528\u65b0\u5efa\u7684\u7528\u6237\u767b\u5f55<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u767b\u5f55\u65b0\u7528\u6237.png\" alt=\"Portainer\u767b\u5f55\u65b0\u7528\u6237\" \/><\/p>\n<p>\u666e\u901a\u7528\u6237\u6743\u9650\u8f83\u5c0f\uff0c\u65e0\u6cd5\u7ba1\u7406\u5bb9\u5668<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u666e\u901a\u7528\u6237\u6743\u9650.png\" alt=\"Portainer\u666e\u901a\u7528\u6237\u6743\u9650\" \/><\/p>\n<h3>\u7ba1\u7406\u955c\u50cf<\/h3>\n<p>\u53ef\u4ee5\u62c9\u53d6\uff0c\u4e0a\u4f20\uff0c\u6784\u5efa\u7b49\u7ba1\u7406\u955c\u50cf<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u7ba1\u7406\u955c\u50cf.png\" alt=\"Portainer\u7ba1\u7406\u955c\u50cf\" \/><\/p>\n<h3>\u7ba1\u7406\u5bb9\u5668<\/h3>\n<p>\u53ef\u4ee5\u521b\u5efa\uff0c\u5220\u9664\u542f\u52a8\u548c\u505c\u6b62\u5bb9\u5668\u7b49<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u7ba1\u7406\u5bb9\u5668.png\" alt=\"Portainer\u7ba1\u7406\u5bb9\u5668\" \/><\/p>\n<p>\u521b\u5efa\u65b0\u5bb9\u5668<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u521b\u5efa\u5bb9\u5668.png\" alt=\"Portainer\u521b\u5efa\u5bb9\u5668\" \/><\/p>\n<p>\u67e5\u770b\u521b\u5efa\u7684\u5bb9\u5668<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/Portainer\u67e5\u770b\u5bb9\u5668.png\" alt=\"Portainer\u67e5\u770b\u5bb9\u5668\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Portainer\u4ecb\u7ecd Portainer\u662f\u4e00\u4e2a\u53ef\u89c6\u5316\u7684\u5bb9\u5668\u955c\u50cf\u7684\u56fe\u5f62\u7ba1\u7406\u5de5\u5177\uff0c\u5229\u7528Portainer\u53ef\u4ee5\u8f7b\u677e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[179],"tags":[431],"class_list":["post-1721","post","type-post","status-publish","format-standard","hentry","category-docker","tag-portainer"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1721"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1721\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}