{"id":15497,"date":"2024-11-18T18:29:38","date_gmt":"2024-11-18T10:29:38","guid":{"rendered":"https:\/\/fwq.ai\/blog\/?p=15497"},"modified":"2024-11-18T18:29:38","modified_gmt":"2024-11-18T10:29:38","slug":"docker%e7%9a%84%e5%91%bd%e4%bb%a4%e4%b9%8b%e6%8f%92%e4%bb%b6%e7%ae%a1%e7%90%86-plugin","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/15497\/","title":{"rendered":"Docker\u7684\u547d\u4ee4\u4e4b\u63d2\u4ef6\u7ba1\u7406 Plugin"},"content":{"rendered":"<p class=\"p1\"><span class=\"s1\">Docker\u7684\u4e00\u4e2a\u91cd\u8981\u7279\u6027\u662f\u5f00\u7bb1\u5373\u7528\uff0c<\/span>\u201c\u5f00\u7bb1\u5373\u7528\u201d\u662f\u6307\u4ec0\u4e48\u5462\uff1f\u7b80\u5355\u6765\u8bf4\uff0c\u5b89\u88c5\u597dDocker\u5c31\u53ef\u4ee5\u9a6c\u4e0a\u4f7f\u7528\u3002\u4e0d\u9700\u8981\u4efb\u4f55\u989d\u5916\u7684\u64cd\u4f5c\uff0c\u8bf8\u5982\u7f51\u7edc\u3001\u8fdb\u7a0b\u3001\u6587\u4ef6\u7cfb\u7edf\u9694\u79bb\u7b49\u7e41\u6742\u4e8b\u60c5\u4e5f\u4e0d\u5728\u4f60\u62c5\u5fc3\u7684\u8303\u56f4\u5185\u3002<\/p>\n<p class=\"p1\"><span class=\"s1\">\u4e0d\u8fc7\uff0c\u7ecf\u8fc7\u4e00\u6bb5\u65f6\u95f4\u7684\u4f7f\u7528\uff0c\u4f60\u53ef\u80fd\u5f00\u59cb\u4f1a\u8003\u8651\u66f4\u591a\u2014\u2014\u8bf8\u5982\u81ea\u5b9a\u4e49\u7f51\u7edc\uff0c\u81ea\u5b9a\u4e49\u4fdd\u7559IP\u5730\u5740\uff0c\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u7b49\u7b49\u3002\u8fd9\u4e9b\u9700\u6c42\u4f1a\u5728\u4f60\u5c06Docker\u5e94\u7528\u5230\u751f\u4ea7\u6216\u8005\u505a\u8fdb\u4e00\u6b65\u51c6\u5907\u65f6\u5019\u6d6e\u73b0\u800c\u51fa\u3002<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">\u5e78\u8fd0\u7684\u662f\uff0cDocker\u4e0d\u4ec5\u4ec5\u662f\u5f00\u7bb1\u5373\u7528\uff0c\u5176\u4e2d\u7684\u529f\u80fd\u70b9\u4e5f\u662f\u53ef\u4ee5\u8fdb\u884c\u8c03\u6574\u7684\u3002\u5982\u4f55\u8c03\u6574\u5462\uff1f\u901a\u8fc7Docker\u7684\u63d2\u4ef6\uff01<\/span><\/p>\n<p class=\"p1\">\n<blockquote>\n<p class=\"p1\"><strong><span class=\"s1\">\u201c\u5373\u4f7f@Docker\u5f00\u7bb1\u5373\u7528\uff0c\u6700\u7ec8\u4f60\u8fd8\u662f\u60f3\u8981\u66f4\u591a\u3002\u201d\u2014\u2014 @fntln<\/span><\/strong><\/p>\n<\/blockquote>\n<h3 class=\"p1\"><strong><span class=\"s1\">\u4e00\u3001\u4ec0\u4e48\u662fDocker\u63d2\u4ef6\uff1f<\/span><\/strong><\/h3>\n<p class=\"p1\"><span class=\"s2\">\u5b98\u65b9\u6587\u6863\u7684\u63cf\u8ff0\u662f\uff1a<\/span><\/p>\n<pre class=\"p3\"><span class=\"s2\">Docker\u63d2\u4ef6\u662f\u589e\u5f3aDocker\u5f15\u64ce\u529f\u80fd\u7684\u8fdb\u7a0b\u5916\u6269\u5c55\u3002<\/span><\/pre>\n<p class=\"p1\"><span class=\"s2\">\u8fd9\u5c31\u8868\u793a\uff0c\u63d2\u4ef6\u4e0d\u4f1a\u8fd0\u884c\u5728Docker daemon\u4e2d\u3002\u4f60\u53ef\u4ee5\u968f\u65f6\u968f\u5730\uff08\u5982\u679c\u9700\u8981\u53ef\u4ee5\u5728\u53e6\u4e00\u53f0\u4e3b\u673a\u4e0a\uff09\u542f\u52a8\u4f60\u7684\u63d2\u4ef6\u3002\u4f60\u53ea\u9700\u8981\u901a\u8fc7Plugin Discovery\uff08\u6211\u4eec\u540e\u9762\u4f1a\u6df1\u5165\u8ba8\u8bba\uff09\u901a\u77e5Docker daemon\u8fd9\u513f\u6709\u4e00\u4e2a\u65b0\u7684\u63d2\u4ef6\u53ef\u7528\u5373\u53ef\u3002<\/span><\/p>\n<p class=\"p1\"><span class=\"s2\">\u8fdb\u7a0b\u5916\u4f53\u7cfb\u7684\u53e6\u4e00\u4e2a\u4f18\u70b9\u5c31\u662f\u4f60\u751a\u81f3\u53ef\u4ee5\u4e0d\u7528\u91cd\u65b0\u5efa\u7acb\u4e00\u4e2aDocker daemon\u6765\u589e\u52a0\u4e00\u4e2a\u63d2\u4ef6\u3002<\/span><\/p>\n<blockquote>\n<p class=\"p3\"><strong><span class=\"s2\">\u201c\u4f60\u4e0d\u9700\u8981\u91cd\u65b0\u7f16\u8bd1@Docker\u7684\u5b88\u62a4\u8fdb\u7a0b\u6765\u589e\u52a0\u4e00\u4e2a\u63d2\u4ef6\u3002\u201d \u2014\u2014fntlnz<\/span><\/strong><\/p>\n<\/blockquote>\n<p class=\"p1\"><span class=\"s2\">\u4f60\u53ef\u4ee5\u521b\u5efa\u5e26\u6709\u5982\u4e0b\u529f\u80fd\u7684\u5404\u79cd\u63d2\u4ef6\uff0c\u53c2\u8003\uff1a<\/span>\u4f7f\u7528\u63d2\u4ef6\u6269\u5c55Docker\u6848\u4f8b<\/p>\n<pre><strong>Usage: docker plugin COMMAND<\/strong>\r\n\r\n<strong>Manage plugins<\/strong>\r\n\r\n<strong>Options:<\/strong>\r\n <strong>--help<\/strong> Print usage\r\n\r\n<strong>Commands:<\/strong>\r\n <strong>create<\/strong> Create a plugin from a rootfs and configuration. Plugin data directory \r\n        must contain config.json and rootfs directory.\r\n <strong>disable<\/strong> Disable a plugin\r\n <strong>enable<\/strong> Enable a plugin\r\n <strong>inspect<\/strong> Display detailed information on one or more plugins\r\n <strong>install<\/strong> Install a plugin\r\n <strong>ls<\/strong> List plugins\r\n <strong>push<\/strong> Push a plugin to a registry\r\n <strong>rm<\/strong> Remove one or more plugins\r\n <strong>set<\/strong> Change settings for a plugin\r\n <strong>upgrade<\/strong> Upgrade an existing plugin\r\n\r\nRun 'docker plugin COMMAND --help' for more information on a command.\r\n\uff03 \u53ef\u4ee5\u4f7f\u7528 docker plugin COMMAND --help \uff0c\u7ee7\u7eed\u67e5\u770b\u4f7f\u7528\u8bf4\u660e\u3002<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u7684\u4e00\u4e2a\u91cd\u8981\u7279\u6027\u662f\u5f00\u7bb1\u5373\u7528\uff0c\u201c\u5f00\u7bb1\u5373\u7528\u201d\u662f\u6307\u4ec0\u4e48\u5462\uff1f\u7b80\u5355\u6765\u8bf4\uff0c\u5b89\u88c5\u597dDocker\u5c31\u53ef\u4ee5\u9a6c\u4e0a\u4f7f\u7528\u3002\u4e0d\u9700\u8981\u4efb\u4f55\u989d\u5916\u7684\u64cd\u4f5c\uff0c\u8bf8\u5982\u7f51\u7edc\u3001\u8fdb\u7a0b\u3001\u6587\u4ef6\u7cfb\u7edf\u9694\u79bb\u7b49\u7e41\u6742\u4e8b\u60c5\u4e5f\u4e0d\u5728\u4f60\u62c5\u5fc3\u7684\u8303\u56f4\u5185\u3002 \u4e0d\u8fc7\uff0c\u7ecf\u8fc7\u4e00\u6bb5\u65f6\u95f4\u7684\u4f7f\u7528\uff0c\u4f60\u53ef\u80fd\u5f00\u59cb\u4f1a\u8003\u8651\u66f4\u591a\u2014\u2014\u8bf8\u5982\u81ea\u5b9a\u4e49\u7f51\u7edc\uff0c\u81ea\u5b9a\u4e49\u4fdd\u7559IP\u5730\u5740\uff0c\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u7b49\u7b49\u3002\u8fd9\u4e9b\u9700\u6c42\u4f1a\u5728\u4f60\u5c06Docker\u5e94\u7528\u5230\u751f\u4ea7\u6216\u8005\u505a\u8fdb\u4e00\u6b65\u51c6\u5907\u65f6\u5019\u6d6e\u73b0\u800c\u51fa\u3002 \u5e78\u8fd0\u7684\u662f\uff0cDocker\u4e0d\u4ec5\u4ec5\u662f\u5f00\u7bb1\u5373\u7528\uff0c\u5176\u4e2d\u7684\u529f\u80fd\u70b9\u4e5f\u662f\u53ef\u4ee5\u8fdb\u884c\u8c03\u6574\u7684\u3002\u5982\u4f55\u8c03\u6574\u5462\uff1f\u901a\u8fc7Docker\u7684\u63d2\u4ef6\uff01 \u201c\u5373\u4f7f@Docker\u5f00\u7bb1\u5373\u7528\uff0c\u6700\u7ec8\u4f60\u8fd8\u662f\u60f3\u8981\u66f4\u591a\u3002\u201d\u2014\u2014 @fntln \u4e00\u3001\u4ec0\u4e48\u662fDocker\u63d2\u4ef6\uff1f \u5b98\u65b9\u6587\u6863\u7684\u63cf\u8ff0\u662f\uff1a Docker\u63d2\u4ef6\u662f\u589e\u5f3aDocker\u5f15\u64ce\u529f\u80fd\u7684\u8fdb\u7a0b\u5916\u6269\u5c55\u3002 \u8fd9\u5c31\u8868\u793a\uff0c\u63d2\u4ef6\u4e0d\u4f1a\u8fd0\u884c\u5728Docker daemon\u4e2d\u3002\u4f60\u53ef\u4ee5\u968f\u65f6\u968f\u5730\uff08\u5982\u679c\u9700\u8981\u53ef\u4ee5\u5728\u53e6\u4e00\u53f0\u4e3b\u673a\u4e0a\uff09\u542f\u52a8\u4f60\u7684\u63d2\u4ef6\u3002\u4f60\u53ea\u9700\u8981\u901a\u8fc7Plugin Discovery\uff08\u6211\u4eec\u540e\u9762\u4f1a\u6df1\u5165\u8ba8\u8bba\uff09\u901a\u77e5Docker daemon\u8fd9\u513f\u6709\u4e00\u4e2a\u65b0\u7684\u63d2\u4ef6\u53ef\u7528\u5373\u53ef\u3002 \u8fdb\u7a0b\u5916\u4f53\u7cfb\u7684\u53e6\u4e00\u4e2a\u4f18\u70b9\u5c31\u662f\u4f60\u751a\u81f3\u53ef\u4ee5\u4e0d\u7528\u91cd\u65b0\u5efa\u7acb\u4e00\u4e2aDocker daemon\u6765\u589e\u52a0\u4e00\u4e2a\u63d2\u4ef6\u3002 \u201c\u4f60\u4e0d\u9700\u8981\u91cd\u65b0\u7f16\u8bd1@Docker\u7684\u5b88\u62a4\u8fdb\u7a0b\u6765\u589e\u52a0\u4e00\u4e2a\u63d2\u4ef6\u3002\u201d \u2014\u2014fntlnz \u4f60\u53ef\u4ee5\u521b\u5efa\u5e26\u6709\u5982\u4e0b\u529f\u80fd\u7684\u5404\u79cd\u63d2\u4ef6\uff0c\u53c2\u8003\uff1a\u4f7f\u7528\u63d2\u4ef6\u6269\u5c55Docker\u6848\u4f8b Usage: docker plugin COMMAND Manage plugins Options: &#8211;help Print usage Commands: create Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory. disable Disable a plugin enable Enable a plugin inspect [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-15497","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/15497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=15497"}],"version-history":[{"count":1,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/15497\/revisions"}],"predecessor-version":[{"id":15498,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/15497\/revisions\/15498"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=15497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=15497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=15497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}