{"id":121619,"date":"2026-11-03T05:40:49","date_gmt":"2026-11-02T21:40:49","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/121619.html"},"modified":"2026-11-03T05:40:49","modified_gmt":"2026-11-02T21:40:49","slug":"docker%e6%9e%b6%e6%9e%84%e5%ba%95%e5%b1%82%e5%88%86%e6%9e%90%ef%bc%9a%e5%ae%a2%e6%88%b7%e7%ab%af-%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88c-s%ef%bc%89%e6%9e%b6%e6%9e%84%e5%b7%a5%e4%bd%9c%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/121619.html","title":{"rendered":"Docker\u67b6\u6784\u5e95\u5c42\u5206\u6790\uff1a\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\uff08C\/S\uff09\u67b6\u6784\u5de5\u4f5c\u539f\u7406\u6587\u89e3\u6790"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u524d\u8a00&#xff1a;\u524d\u4e24\u7bc7\u6587\u7ae0&#xff0c;\u6211\u4eec\u5df2\u7ecf\u638c\u63e1\u4e86Docker\u7684\u57fa\u7840\u5b9a\u4e49\u3001\u5bb9\u5668\u4e0e\u865a\u62df\u673a\u7684\u533a\u522b&#xff0c;\u4ee5\u53ca\u955c\u50cf\u3001\u5bb9\u5668\u3001\u4ed3\u5e93\u4e09\u5927\u6838\u5fc3\u7ec4\u4ef6\u3002\u5f88\u591a\u65b0\u624b\u7559\u8a00\u53cd\u9988&#xff0c;\u867d\u7136\u5df2\u7ecf\u4f1a\u7528docker run\u3001docker pull\u7b49\u57fa\u7840\u547d\u4ee4&#xff0c;\u4f46\u59cb\u7ec8\u56f0\u60d1\u2014\u2014\u547d\u4ee4\u6572\u4e0b\u53bb\u540e&#xff0c;Docker\u5185\u90e8\u662f\u600e\u4e48\u5de5\u4f5c\u7684&#xff1f;\u8f93\u5165docker run\u540e&#xff0c;\u80cc\u540e\u5230\u5e95\u53d1\u751f\u4e86\u54ea\u4e9b\u64cd\u4f5c&#xff1f;\u4e3a\u4ec0\u4e48\u540c\u6837\u7684\u547d\u4ee4&#xff0c;\u5728\u672c\u5730\u548c\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u90fd\u80fd\u6267\u884c&#xff1f;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5176\u5b9e&#xff0c;Docker\u4e4b\u6240\u4ee5\u80fd\u5b9e\u73b0\u201c\u4e00\u952e\u90e8\u7f72\u3001\u8de8\u73af\u5883\u8fd0\u884c\u201d&#xff0c;\u6838\u5fc3\u5c31\u5728\u4e8e\u5b83\u7684\u5e95\u5c42\u67b6\u6784\u2014\u2014\u5ba2\u6237\u7aef-\u670d\u52a1\u5668&#xff08;C\/S&#xff09;\u67b6\u6784\u3002\u5f88\u591a\u65b0\u624b\u89c9\u5f97\u5e95\u5c42\u67b6\u6784\u9ad8\u6df1\u96be\u61c2&#xff0c;\u4e3b\u8981\u662f\u88ab\u201c\u5b88\u62a4\u8fdb\u7a0b\u201d\u201cAPI\u901a\u4fe1\u201d\u7b49\u672f\u8bed\u529d\u9000&#xff0c;\u4f46\u53ea\u8981\u6293\u4f4f\u201c\u5ba2\u6237\u7aef\u53d1\u547d\u4ee4\u3001\u670d\u52a1\u5668\u505a\u6267\u884c\u3001API\u4f20\u6d88\u606f\u201d\u8fd9\u4e00\u6838\u5fc3\u903b\u8f91&#xff0c;\u518d\u7ed3\u5408\u6211\u4eec\u4e4b\u524d\u7ec3\u8fc7\u7684\u5b9e\u64cd\u547d\u4ee4&#xff0c;\u5c31\u80fd\u8f7b\u677e\u5403\u900f\u5176\u4e2d\u539f\u7406\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u672c\u6587\u5c06\u5f7b\u5e95\u6452\u5f03\u590d\u6742\u4e13\u4e1a\u672f\u8bed&#xff0c;\u7528\u201c\u901a\u4fd7\u7c7b\u6bd4&#043;\u539f\u7406\u62c6\u89e3&#043;\u5b9e\u64cd\u5bf9\u5e94\u201d\u7684\u65b9\u5f0f&#xff0c;\u628aDocker C\/S\u67b6\u6784\u7684\u6bcf\u4e00\u4e2a\u7ec4\u4ef6\u3001\u5b8c\u6574\u5de5\u4f5c\u6d41\u7a0b\u8bb2\u900f&#xff0c;\u8865\u5168\u6240\u6709\u672a\u5b8c\u6210\u5185\u5bb9&#xff0c;\u5168\u7a0b\u8d34\u5408\u65b0\u624b\u8ba4\u77e5\u3002\u770b\u5b8c\u8fd9\u7bc7&#xff0c;\u4f60\u4e0d\u4ec5\u80fd\u660e\u767d\u6bcf\u4e00\u6761Docker\u547d\u4ee4\u80cc\u540e\u7684\u8fd0\u884c\u903b\u8f91&#xff0c;\u8fd8\u80fd\u4e3a\u540e\u7eed\u5b66\u4e60Docker\u8fdb\u9636\u77e5\u8bc6&#xff08;\u6bd4\u5982\u955c\u50cf\u6784\u5efa\u3001\u5bb9\u5668\u7f51\u7edc\u3001Docker Compose&#xff09;\u6253\u4e0b\u575a\u5b9e\u57fa\u7840\u3002\u5efa\u8bae\u6536\u85cf&#043;\u5173\u6ce8&#xff0c;\u8ddf\u4e0aDocker\u7cfb\u5217\u5165\u95e8\u6559\u7a0b&#xff0c;\u4ece\u96f6\u5230\u4e00\u5403\u900fDocker&#xff0c;\u5f7b\u5e95\u6446\u8131\u201c\u53ea\u4f1a\u6572\u547d\u4ee4\u3001\u4e0d\u61c2\u5e95\u5c42\u201d\u7684\u56f0\u5883&#xff01;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5148\u7834\u8bef\u533a&#xff1a;Docker\u4e0d\u662f\u201c\u5355\u7a0b\u5e8f\u201d&#xff0c;\u662f\u201c\u5ba2\u6237\u7aef&#043;\u670d\u52a1\u5668\u201d\u7684\u7ec4\u5408<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u65b0\u624b\u6700\u5bb9\u6613\u9677\u5165\u7684\u8bef\u533a&#xff1a;\u4ee5\u4e3aDocker\u662f\u4e00\u4e2a\u5355\u72ec\u7684\u7a0b\u5e8f&#xff0c;\u53cc\u51fb\u6253\u5f00\u5c31\u80fd\u7528&#xff0c;\u6572\u547d\u4ee4\u5c31\u76f4\u63a5\u6267\u884c\u2014\u2014\u5176\u5b9e\u4e0d\u662f\u8fd9\u6837\u7684\u3002\u5c31\u50cf\u6211\u4eec\u7528\u5fae\u4fe1\u53d1\u6d88\u606f&#xff0c;\u4e0d\u662f\u5fae\u4fe1\u4e00\u4e2a\u7a0b\u5e8f\u5b8c\u6210\u6240\u6709\u64cd\u4f5c&#xff0c;\u800c\u662f\u201c\u4f60\u7684\u5fae\u4fe1\u5ba2\u6237\u7aef\u201d\u548c\u201c\u5fae\u4fe1\u670d\u52a1\u5668\u201d\u914d\u5408\u5de5\u4f5c&#xff0c;Docker\u4e5f\u662f\u540c\u7406\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">Docker\u672c\u8d28\u662f\u4e00\u4e2a\u5ba2\u6237\u7aef-\u670d\u52a1\u5668&#xff08;C\/S&#xff09;\u67b6\u6784\u7684\u5e94\u7528\u7a0b\u5e8f&#xff0c;\u7531\u4e24\u4e2a\u6838\u5fc3\u90e8\u5206\u7ec4\u6210&#xff1a;\u5ba2\u6237\u7aef&#xff08;Docker Client&#xff09;\u548c\u670d\u52a1\u5668&#xff08;Docker Daemon&#xff0c;\u4e5f\u53ebDocker\u5b88\u62a4\u8fdb\u7a0b&#xff09;&#xff0c;\u4e24\u8005\u76f8\u4e92\u72ec\u7acb\u3001\u5206\u5de5\u660e\u786e&#xff0c;\u901a\u8fc7Docker API&#xff08;\u901a\u4fe1\u6865\u6881&#xff09;\u914d\u5408\u5de5\u4f5c&#xff0c;\u7f3a\u4e00\u4e0d\u53ef\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u901a\u4fd7\u7c7b\u6bd4&#xff1a;\u628aDocker\u60f3\u8c61\u6210\u201c\u9910\u5385\u201d\u2014\u2014\u5ba2\u6237\u7aef\u5c31\u662f\u201c\u987e\u5ba2\u201d&#xff0c;\u8d1f\u8d23\u201c\u70b9\u5355\u201d&#xff08;\u8f93\u5165Docker\u547d\u4ee4&#xff0c;\u6bd4\u5982docker run\u3001docker pull&#xff09;&#xff1b;\u670d\u52a1\u5668\u5c31\u662f\u201c\u540e\u53a8\u201d&#xff0c;\u8d1f\u8d23\u201c\u505a\u83dc\u201d&#xff08;\u63a5\u6536\u547d\u4ee4\u3001\u6267\u884c\u5177\u4f53\u64cd\u4f5c&#xff0c;\u6bd4\u5982\u521b\u5efa\u5bb9\u5668\u3001\u62c9\u53d6\u955c\u50cf&#xff09;&#xff1b;Docker API\u5c31\u662f\u201c\u670d\u52a1\u5458\u201d&#xff0c;\u8d1f\u8d23\u4f20\u9012\u987e\u5ba2\u7684\u70b9\u5355\u9700\u6c42\u548c\u540e\u53a8\u7684\u53cd\u9988&#xff08;\u6bd4\u5982\u201c\u83dc\u505a\u597d\u4e86\u201d\u201c\u6ca1\u6709\u8fd9\u4e2a\u83dc\u201d&#xff09;\u3002\u987e\u5ba2\u4e0d\u7528\u7ba1\u540e\u53a8\u600e\u4e48\u505a\u83dc\u3001\u670d\u52a1\u5458\u600e\u4e48\u4f20\u6d88\u606f&#xff0c;\u53ea\u8981\u70b9\u5355&#xff0c;\u5c31\u80fd\u62ff\u5230\u6210\u54c1&#xff0c;\u8fd9\u5c31\u662fDocker C\/S\u67b6\u6784\u7684\u6838\u5fc3\u903b\u8f91&#xff0c;\u7b80\u5355\u6613\u61c2\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u91cd\u70b9\u63d0\u9192&#xff1a;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668&#xff0c;\u53ef\u4ee5\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a&#xff08;\u6bd4\u5982\u6211\u4eec\u672c\u5730\u7535\u8111\u5b89\u88c5Docker&#xff0c;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u90fd\u5728\u81ea\u5df1\u7684\u7535\u8111\u4e0a&#xff0c;\u5e73\u65f6\u6572\u547d\u4ee4\u5c31\u662f\u672c\u5730\u5ba2\u6237\u7aef\u7ed9\u672c\u5730\u670d\u52a1\u5668\u53d1\u8bf7\u6c42&#xff09;&#xff0c;\u4e5f\u53ef\u4ee5\u5728\u4e0d\u540c\u673a\u5668\u4e0a&#xff08;\u6bd4\u5982\u5ba2\u6237\u7aef\u5728\u672c\u5730\u7535\u8111&#xff0c;\u670d\u52a1\u5668\u5728\u8fdc\u7a0b\u4e91\u670d\u52a1\u5668&#xff0c;\u5ba2\u6237\u7aef\u901a\u8fc7\u547d\u4ee4\u8fdc\u7a0b\u64cd\u63a7\u670d\u52a1\u5668\u4e0a\u7684Docker&#xff0c;\u8fd9\u4e5f\u662fDocker\u80fd\u5b9e\u73b0\u201c\u8fdc\u7a0b\u90e8\u7f72\u201d\u7684\u5173\u952e&#xff09;\u3002\u6bd4\u5982\u6211\u4eec\u5728\u672c\u5730\u6572<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker -H <\/span><\/span><span style=\"background-color:#eff0f1\"><span style=\"color:black\">\u8fdc\u7a0b\u670d\u52a1\u5668IP:2375 run nginx<\/span><\/span>&#xff0c;\u5c31\u662f\u672c\u5730\u5ba2\u6237\u7aef\u7ed9\u8fdc\u7a0b\u670d\u52a1\u5668\u53d1\u547d\u4ee4&#xff0c;\u8ba9\u8fdc\u7a0b\u670d\u52a1\u5668\u542f\u52a8Nginx\u5bb9\u5668\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6838\u5fc3\u62c6\u89e3&#xff1a;Docker C\/S\u67b6\u6784\u76843\u4e2a\u6838\u5fc3\u7ec4\u4ef6&#xff08;\u5fc5\u61c2&#xff0c;\u8865\u5168\u5b8c\u6574\u7248&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">Docker C\/S\u67b6\u6784&#xff0c;\u9664\u4e86\u6700\u6838\u5fc3\u7684\u201c\u5ba2\u6237\u7aef&#xff08;Docker Client&#xff09;\u201d\u548c\u201c\u670d\u52a1\u5668&#xff08;Docker Daemon&#xff09;\u201d&#xff0c;\u8fd8\u6709\u4e00\u4e2a\u4e0d\u53ef\u6216\u7f3a\u7684\u201c\u901a\u4fe1\u6865\u6881\u201d\u2014\u2014Docker API&#xff0c;\u4e09\u8005\u534f\u540c\u5de5\u4f5c&#xff0c;\u6784\u6210\u4e86Docker\u7684\u5b8c\u6574\u5e95\u5c42\u67b6\u6784\u3002\u4e0b\u9762\u9010\u4e2a\u62c6\u89e3&#xff0c;\u6bcf\u4e2a\u7ec4\u4ef6\u90fd\u7ed3\u5408\u5b9e\u64cd\u573a\u666f&#xff0c;\u8ba9\u65b0\u624b\u80fd\u5feb\u901f\u5bf9\u5e94\u4e0a\u81ea\u5df1\u719f\u6089\u7684\u64cd\u4f5c&#xff0c;\u518d\u4e5f\u4e0d\u7528\u6b7b\u8bb0\u786c\u80cc\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7ec4\u4ef61&#xff1a;Docker Client&#xff08;\u5ba2\u6237\u7aef&#xff09;\u2014\u2014\u547d\u4ee4\u7684\u201c\u53d1\u8d77\u8005\u201d&#xff0c;\u65b0\u624b\u76f4\u63a5\u64cd\u4f5c\u7684\u5165\u53e3<\/p>\n<p style=\"margin-left:0;margin-right:0\">1. \u901a\u4fd7\u5b9a\u4e49<\/p>\n<p style=\"margin-left:0;margin-right:0\">Docker Client\u662f\u6211\u4eec\u76f4\u63a5\u64cd\u4f5c\u7684\u201c\u5165\u53e3\u201d&#xff0c;\u672c\u8d28\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177&#xff08;CLI&#xff09;&#xff0c;\u6211\u4eec\u5e73\u65f6\u5728Windows\u7ec8\u7aef\u3001Mac\u7ec8\u7aef\u3001Linux\u7ec8\u7aef\u8f93\u5165\u7684\u6240\u6709Docker\u547d\u4ee4&#xff08;\u6bd4\u5982docker run\u3001docker pull\u3001docker ps\u3001docker stop&#xff09;&#xff0c;\u90fd\u662f\u901a\u8fc7\u5ba2\u6237\u7aef\u53d1\u8d77\u7684\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5ba2\u6237\u7aef\u7684\u6838\u5fc3\u4f5c\u7528&#xff1a;\u4e0d\u6267\u884c\u4efb\u4f55\u5177\u4f53\u64cd\u4f5c&#xff0c;\u53ea\u8d1f\u8d23\u201c\u4f20\u8bdd\u7b52\u201d\u548c\u201c\u5c55\u793a\u5458\u201d\u2014\u2014\u63a5\u6536\u7528\u6237\u8f93\u5165\u7684\u547d\u4ee4&#xff0c;\u5c06\u547d\u4ee4\u201c\u7ffb\u8bd1\u201d\u6210\u670d\u52a1\u5668&#xff08;Docker Daemon&#xff09;\u80fd\u8bc6\u522b\u7684\u683c\u5f0f&#xff0c;\u901a\u8fc7Docker API\u53d1\u9001\u7ed9\u670d\u52a1\u5668&#xff1b;\u540c\u65f6\u63a5\u6536\u670d\u52a1\u5668\u8fd4\u56de\u7684\u6267\u884c\u7ed3\u679c&#xff08;\u6210\u529f\/\u5931\u8d25\u3001\u6267\u884c\u8be6\u60c5&#xff09;&#xff0c;\u6574\u7406\u540e\u5c55\u793a\u5728\u7ec8\u7aef\u4e0a&#xff0c;\u8ba9\u6211\u4eec\u80fd\u6e05\u6670\u770b\u5230\u547d\u4ee4\u7684\u6267\u884c\u6548\u679c\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">2. \u5b9e\u64cd\u5bf9\u5e94&#xff08;\u65b0\u624b\u6709\u5171\u9e23&#xff0c;\u4e00\u770b\u5c31\u61c2&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6211\u4eec\u5e73\u65f6\u505a\u7684\u8fd9\u4e9b\u64cd\u4f5c&#xff0c;\u90fd\u662f\u5728\u548cDocker Client\u6253\u4ea4\u9053&#xff0c;\u6bcf\u4e00\u6b65\u90fd\u5bf9\u5e94\u5ba2\u6237\u7aef\u7684\u6838\u5fc3\u4f5c\u7528&#xff1a;<\/p>\n<ul>\n<li>\u5728\u7ec8\u7aef\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker run my-nginx<\/span><\/span>\u2014\u2014\u5ba2\u6237\u7aef\u63a5\u6536\u8fd9\u4e2a\u547d\u4ee4&#xff0c;\u7ffb\u8bd1\u540e\u901a\u8fc7API\u53d1\u9001\u7ed9\u672c\u5730\u7684Docker Daemon&#xff0c;\u8bf7\u6c42\u542f\u52a8my-nginx\u5bb9\u5668&#xff1b;\u5982\u679c\u542f\u52a8\u6210\u529f&#xff0c;\u670d\u52a1\u5668\u8fd4\u56de\u201c\u542f\u52a8\u6210\u529f\u201d\u7684\u7ed3\u679c&#xff0c;\u5ba2\u6237\u7aef\u5c31\u4f1a\u5728\u7ec8\u7aef\u663e\u793a\u5bb9\u5668ID&#xff1b;\u5982\u679c\u5931\u8d25&#xff08;\u6bd4\u5982\u5bb9\u5668\u4e0d\u5b58\u5728&#xff09;&#xff0c;\u5ba2\u6237\u7aef\u5c31\u4f1a\u663e\u793a\u9519\u8bef\u63d0\u793a\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker pull nginx:latest<\/span><\/span>\u2014\u2014\u5ba2\u6237\u7aef\u53d1\u9001\u201c\u62c9\u53d6Nginx\u6700\u65b0\u955c\u50cf\u201d\u7684\u8bf7\u6c42\u7ed9\u670d\u52a1\u5668&#xff0c;\u670d\u52a1\u5668\u6267\u884c\u62c9\u53d6\u64cd\u4f5c&#xff0c;\u5ba2\u6237\u7aef\u5b9e\u65f6\u5c55\u793a\u62c9\u53d6\u8fdb\u5ea6&#xff08;\u6bd4\u5982\u767e\u5206\u6bd4\u3001\u4e0b\u8f7d\u901f\u5ea6&#xff09;&#xff0c;\u62c9\u53d6\u5b8c\u6210\u540e\u663e\u793a\u201c\u5b8c\u6210\u201d\u63d0\u793a\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker ps<\/span><\/span>\u2014\u2014\u5ba2\u6237\u7aef\u53d1\u9001\u201c\u67e5\u770b\u5f53\u524d\u8fd0\u884c\u4e2d\u5bb9\u5668\u201d\u7684\u8bf7\u6c42\u7ed9\u670d\u52a1\u5668&#xff0c;\u670d\u52a1\u5668\u67e5\u8be2\u540e\u8fd4\u56de\u5bb9\u5668\u5217\u8868&#xff08;\u5bb9\u5668ID\u3001\u540d\u79f0\u3001\u955c\u50cf\u3001\u72b6\u6001\u7b49&#xff09;&#xff0c;\u5ba2\u6237\u7aef\u5c06\u5217\u8868\u6574\u7406\u540e\u5c55\u793a\u5728\u7ec8\u7aef\u4e0a&#xff0c;\u65b9\u4fbf\u6211\u4eec\u67e5\u770b\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0\">3. \u65b0\u624b\u8865\u5145&#xff08;\u4e0d\u7528\u6df1\u5165&#xff0c;\u4e86\u89e3\u5373\u53ef&#xff0c;\u907f\u514d\u56f0\u60d1&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">Docker Client\u4e0d\u662f\u53ea\u6709\u201c\u547d\u4ee4\u884c\u201d\u4e00\u79cd\u5f62\u5f0f&#xff0c;\u8fd8\u6709\u56fe\u5f62\u5316\u754c\u9762&#xff08;GUI&#xff09;&#xff0c;\u6bd4\u5982Windows\/Mac\u4e0a\u5e38\u7528\u7684Docker Desktop&#xff0c;\u672c\u8d28\u4e5f\u662fDocker Client\u3002\u6211\u4eec\u5728Docker Desktop\u4e0a\u70b9\u51fb\u201c\u542f\u52a8\u5bb9\u5668\u201d\u201c\u62c9\u53d6\u955c\u50cf\u201d&#xff0c;\u548c\u5728\u7ec8\u7aef\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker start<\/span><\/span>\u3001<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker pull<\/span><\/span>\u547d\u4ee4&#xff0c;\u6548\u679c\u5b8c\u5168\u4e00\u6837\u2014\u2014\u90fd\u662f\u901a\u8fc7\u5ba2\u6237\u7aef\u53d1\u8d77\u8bf7\u6c42&#xff0c;\u53ea\u662f\u64cd\u4f5c\u65b9\u5f0f\u4e0d\u540c&#xff0c;\u65b0\u624b\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u4e60\u60ef\u9009\u62e9\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7ec4\u4ef62&#xff1a;Docker Daemon&#xff08;\u670d\u52a1\u5668\/\u5b88\u62a4\u8fdb\u7a0b&#xff09;\u2014\u2014\u547d\u4ee4\u7684\u201c\u6267\u884c\u8005\u201d&#xff0c;Docker\u7684\u6838\u5fc3\u5927\u8111<\/p>\n<p style=\"margin-left:0;margin-right:0\">1. \u901a\u4fd7\u5b9a\u4e49<\/p>\n<p style=\"margin-left:0;margin-right:0\">Docker Daemon\u662fDocker\u67b6\u6784\u7684\u201c\u6838\u5fc3\u5927\u8111\u201d&#xff0c;\u672c\u8d28\u662f\u4e00\u4e2a\u540e\u53f0\u8fd0\u884c\u7684\u8fdb\u7a0b&#xff08;\u5b88\u62a4\u8fdb\u7a0b&#xff0c;Daemon\u5c31\u662f\u5b88\u62a4\u8fdb\u7a0b\u7684\u610f\u601d&#xff09;&#xff0c;\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;\u53ea\u8981\u6211\u4eec\u542f\u52a8Docker&#xff0c;\u5b83\u5c31\u4f1a\u4e00\u76f4\u5728\u540e\u53f0\u8fd0\u884c&#xff0c;\u4e0d\u4f1a\u5360\u7528\u7ec8\u7aef&#xff0c;\u4e5f\u4e0d\u4f1a\u4e3b\u52a8\u5c55\u793a\u81ea\u5df1&#xff0c;\u53ea\u4f1a\u9ed8\u9ed8\u7b49\u5f85\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u547d\u4ee4\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u91cd\u70b9&#xff1a;Docker Daemon\u62e5\u6709\u64cd\u4f5cDocker\u6240\u6709\u8d44\u6e90&#xff08;\u955c\u50cf\u3001\u5bb9\u5668\u3001\u7f51\u7edc\u3001\u5b58\u50a8&#xff09;\u7684\u6700\u9ad8\u6743\u9650&#xff0c;\u662f\u6240\u6709Docker\u6838\u5fc3\u529f\u80fd\u7684\u201c\u5b9e\u9645\u6267\u884c\u8005\u201d\u3002\u5ba2\u6237\u7aef\u672c\u8eab\u4e0d\u6267\u884c\u4efb\u4f55\u64cd\u4f5c&#xff0c;\u53ea\u8d1f\u8d23\u201c\u53d1\u53f7\u65bd\u4ee4\u201d&#xff0c;\u6240\u6709\u547d\u4ee4\u7684\u5177\u4f53\u6267\u884c&#xff08;\u6bd4\u5982\u521b\u5efa\u5bb9\u5668\u3001\u5220\u9664\u955c\u50cf\u3001\u914d\u7f6e\u7f51\u7edc&#xff09;&#xff0c;\u90fd\u662f\u7531Docker Daemon\u5b8c\u6210\u7684\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">2. \u6838\u5fc3\u529f\u80fd&#xff08;\u7ed3\u5408\u5b9e\u64cd&#xff0c;\u8865\u5168\u5b8c\u6574\u7248&#xff0c;\u4e00\u770b\u5c31\u61c2&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6211\u4eec\u8f93\u5165\u7684\u6bcf\u4e00\u6761Docker\u547d\u4ee4&#xff0c;\u6700\u7ec8\u90fd\u662f\u7531Docker Daemon\u5b8c\u6210\u7684&#xff0c;\u7ed3\u5408\u6211\u4eec\u4e4b\u524d\u7ec3\u8fc7\u7684\u5b9e\u64cd&#xff0c;\u5177\u4f53\u5bf9\u5e94\u5982\u4e0b&#xff0c;\u65b0\u624b\u53ef\u4ee5\u5bf9\u7167\u81ea\u5df1\u6572\u8fc7\u7684\u547d\u4ee4&#xff0c;\u7406\u89e3Daemon\u7684\u5de5\u4f5c&#xff1a;<\/p>\n<ul>\n<li>\u5f53\u6211\u4eec\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker pull nginx:latest<\/span><\/span>\u2014\u2014Daemon\u63a5\u6536\u5ba2\u6237\u7aef\u7684\u201c\u62c9\u53d6\u955c\u50cf\u201d\u8bf7\u6c42\u540e&#xff0c;\u4f1a\u5148\u68c0\u67e5\u672c\u5730\u662f\u5426\u5df2\u7ecf\u6709\u8be5\u955c\u50cf&#xff1b;\u5982\u679c\u6ca1\u6709&#xff0c;\u5c31\u8fde\u63a5Docker Hub&#xff08;\u6216\u56fd\u5185\u955c\u50cf\u4ed3\u5e93&#xff09;&#xff0c;\u4e0b\u8f7dNginx\u955c\u50cf&#xff0c;\u4e0b\u8f7d\u5b8c\u6210\u540e&#xff0c;\u5c06\u955c\u50cf\u5b58\u50a8\u5728\u672c\u5730&#xff0c;\u540c\u65f6\u8fd4\u56de\u201c\u62c9\u53d6\u6210\u529f\u201d\u7684\u7ed3\u679c\u7ed9\u5ba2\u6237\u7aef&#xff0c;\u5ba2\u6237\u7aef\u518d\u5c55\u793a\u7ed9\u6211\u4eec\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u5f53\u6211\u4eec\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker run -d -p 80:80 &#8211;name my-nginx nginx:latest<\/span><\/span>\u2014\u2014Daemon\u63a5\u6536\u8bf7\u6c42\u540e&#xff0c;\u4f1a\u5148\u68c0\u67e5\u672c\u5730\u662f\u5426\u6709nginx:latest\u955c\u50cf&#xff08;\u6ca1\u6709\u5c31\u5148\u62c9\u53d6&#xff09;&#xff0c;\u7136\u540e\u57fa\u4e8e\u8be5\u955c\u50cf\u521b\u5efa\u5bb9\u5668&#xff0c;\u914d\u7f6e\u5bb9\u5668\u7684\u8fd0\u884c\u53c2\u6570&#xff08;\u540e\u53f0\u8fd0\u884c\u3001\u7aef\u53e3\u6620\u5c04\u3001\u5bb9\u5668\u540d\u79f0&#xff09;&#xff0c;\u542f\u52a8\u5bb9\u5668\u5185\u7684Nginx\u8fdb\u7a0b&#xff0c;\u6700\u540e\u8fd4\u56de\u5bb9\u5668ID\u7ed9\u5ba2\u6237\u7aef&#xff0c;\u544a\u77e5\u201c\u5bb9\u5668\u542f\u52a8\u6210\u529f\u201d\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u5f53\u6211\u4eec\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker stop my-nginx<\/span><\/span>\u2014\u2014Daemon\u63a5\u6536\u201c\u505c\u6b62\u5bb9\u5668\u201d\u8bf7\u6c42\u540e&#xff0c;\u4f1a\u627e\u5230\u540d\u79f0\u4e3amy-nginx\u7684\u5bb9\u5668&#xff0c;\u7ec8\u6b62\u5bb9\u5668\u5185\u7684Nginx\u8fdb\u7a0b&#xff0c;\u5c06\u5bb9\u5668\u72b6\u6001\u6539\u4e3a\u201c\u505c\u6b62\u201d&#xff0c;\u7136\u540e\u8fd4\u56de\u201c\u505c\u6b62\u6210\u529f\u201d\u7684\u7ed3\u679c\u7ed9\u5ba2\u6237\u7aef\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u5f53\u6211\u4eec\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker rm my-nginx<\/span><\/span>\u2014\u2014Daemon\u63a5\u6536\u201c\u5220\u9664\u5bb9\u5668\u201d\u8bf7\u6c42\u540e&#xff0c;\u4f1a\u5148\u68c0\u67e5\u8be5\u5bb9\u5668\u662f\u5426\u5df2\u7ecf\u505c\u6b62&#xff08;\u672a\u505c\u6b62\u5219\u63d0\u793a\u5931\u8d25&#xff09;&#xff0c;\u505c\u6b62\u540e\u5220\u9664\u5bb9\u5668\u7684\u76f8\u5173\u6587\u4ef6\u548c\u914d\u7f6e&#xff0c;\u91ca\u653e\u8d44\u6e90&#xff0c;\u7136\u540e\u8fd4\u56de\u201c\u5220\u9664\u6210\u529f\u201d\u7684\u7ed3\u679c\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u9664\u6b64\u4e4b\u5916&#xff0c;Daemon\u8fd8\u8d1f\u8d23\u7ba1\u7406\u5bb9\u5668\u7684\u7f51\u7edc\u3001\u5b58\u50a8&#xff0c;\u6bd4\u5982\u7ed9\u5bb9\u5668\u5206\u914d\u72ec\u7acb\u7684\u7f51\u7edc\u5730\u5740&#xff0c;\u4e3a\u5bb9\u5668\u6302\u8f7d\u5b58\u50a8\u76ee\u5f55&#xff0c;\u4ee5\u53ca\u76d1\u63a7\u5bb9\u5668\u3001\u955c\u50cf\u7684\u72b6\u6001&#xff0c;\u5f53\u5bb9\u5668\u5f02\u5e38\u9000\u51fa\u65f6&#xff0c;Daemon\u4f1a\u8bb0\u5f55\u65e5\u5fd7&#xff0c;\u65b9\u4fbf\u6211\u4eec\u6392\u67e5\u95ee\u9898\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0\">3. \u65b0\u624b\u8865\u5145&#xff08;\u907f\u5751\u91cd\u70b9&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u65b0\u624b\u5bb9\u6613\u8e29\u7684\u4e00\u4e2a\u5751&#xff1a;\u542f\u52a8\u5bb9\u5668\u5931\u8d25&#xff0c;\u4ee5\u4e3a\u662f\u547d\u4ee4\u8f93\u9519\u4e86&#xff0c;\u5176\u5b9e\u53ef\u80fd\u662fDocker Daemon\u6ca1\u6709\u542f\u52a8\u3002\u6bd4\u5982\u5728Windows\u4e0a&#xff0c;\u6ca1\u6709\u6253\u5f00Docker Desktop&#xff08;Daemon\u6ca1\u6709\u542f\u52a8&#xff09;&#xff0c;\u5c31\u76f4\u63a5\u5728\u7ec8\u7aef\u6572docker\u547d\u4ee4&#xff0c;\u4f1a\u63d0\u793a\u201c\u65e0\u6cd5\u8fde\u63a5\u5230Docker Daemon\u201d&#xff0c;\u8fd9\u65f6\u5019\u53ea\u8981\u542f\u52a8Docker Desktop&#xff0c;\u8ba9Daemon\u5728\u540e\u53f0\u8fd0\u884c&#xff0c;\u518d\u6572\u547d\u4ee4\u5c31\u80fd\u6b63\u5e38\u6267\u884c\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7ec4\u4ef63&#xff1a;Docker API\u2014\u2014\u901a\u4fe1\u6865\u6881&#xff0c;\u8fde\u63a5\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u7684\u201c\u670d\u52a1\u5458\u201d<\/p>\n<p style=\"margin-left:0;margin-right:0\">1. \u901a\u4fd7\u5b9a\u4e49<\/p>\n<p style=\"margin-left:0;margin-right:0\">Docker API\u662fDocker Client\u548cDocker Daemon\u4e4b\u95f4\u7684\u201c\u901a\u4fe1\u6865\u6881\u201d&#xff0c;\u672c\u8d28\u662f\u4e00\u5957\u6807\u51c6\u5316\u7684\u63a5\u53e3&#xff08;\u53ef\u4ee5\u7406\u89e3\u4e3a\u201c\u7ea6\u5b9a\u597d\u7684\u901a\u4fe1\u8bed\u8a00\u201d&#xff09;&#xff0c;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u6240\u6709\u6d88\u606f\u4f20\u9012&#xff0c;\u90fd\u5fc5\u987b\u901a\u8fc7\u8fd9\u5957\u63a5\u53e3&#xff0c;\u786e\u4fdd\u4e24\u8005\u80fd\u201c\u542c\u61c2\u201d\u5bf9\u65b9\u7684\u9700\u6c42\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b80\u5355\u8bf4&#xff1a;\u5ba2\u6237\u7aef\u4e0d\u4f1a\u76f4\u63a5\u7ed9\u670d\u52a1\u5668\u53d1\u547d\u4ee4&#xff0c;\u800c\u662f\u901a\u8fc7Docker API&#xff0c;\u5c06\u547d\u4ee4\u8f6c\u6362\u6210\u201c\u6807\u51c6\u5316\u8bed\u8a00\u201d&#xff1b;\u670d\u52a1\u5668\u4e5f\u4e0d\u4f1a\u76f4\u63a5\u63a5\u6536\u5ba2\u6237\u7aef\u7684\u6d88\u606f&#xff0c;\u800c\u662f\u901a\u8fc7Docker API&#xff0c;\u63a5\u6536\u201c\u6807\u51c6\u5316\u8bed\u8a00\u201d\u7684\u8bf7\u6c42&#xff0c;\u6267\u884c\u5b8c\u6210\u540e&#xff0c;\u518d\u901a\u8fc7API\u5c06\u7ed3\u679c\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">2. \u5b9e\u64cd\u5bf9\u5e94&#xff08;\u65b0\u624b\u4e0d\u7528\u6df1\u5165&#xff0c;\u77e5\u9053\u4f5c\u7528\u5373\u53ef&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6211\u4eec\u5e73\u65f6\u6572Docker\u547d\u4ee4&#xff0c;\u5b8c\u5168\u4e0d\u7528\u624b\u52a8\u64cd\u4f5cDocker API&#xff0c;Docker Client\u4f1a\u81ea\u52a8\u5e2e\u6211\u4eec\u5b8c\u6210\u201c\u547d\u4ee4\u2192\u6807\u51c6\u5316\u8bed\u8a00\u201d\u7684\u8f6c\u6362&#xff0c;\u4ee5\u53ca\u901a\u8fc7API\u4f20\u9012\u6d88\u606f\u3002\u6bd4\u5982\u6211\u4eec\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker ps<\/span><\/span>&#xff0c;\u5ba2\u6237\u7aef\u4f1a\u901a\u8fc7Docker API&#xff0c;\u5411Daemon\u53d1\u9001\u201c\u67e5\u8be2\u8fd0\u884c\u4e2d\u5bb9\u5668\u201d\u7684\u6807\u51c6\u5316\u8bf7\u6c42&#xff0c;Daemon\u6267\u884c\u540e&#xff0c;\u901a\u8fc7API\u5c06\u5bb9\u5668\u5217\u8868\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef&#xff0c;\u6574\u4e2a\u8fc7\u7a0b\u6211\u4eec\u5b8c\u5168\u611f\u77e5\u4e0d\u5230API\u7684\u5b58\u5728&#xff0c;\u4f46\u5b83\u5374\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u8865\u5145&#xff1a;\u5982\u679c\u540e\u7eed\u5b66\u4e60Docker\u8fdb\u9636\u77e5\u8bc6&#xff08;\u6bd4\u5982\u7f16\u5199\u811a\u672c\u64cd\u63a7Docker\u3001\u8fdc\u7a0b\u90e8\u7f72&#xff09;&#xff0c;\u53ef\u80fd\u4f1a\u76f4\u63a5\u8c03\u7528Docker API&#xff0c;\u4f46\u65b0\u624b\u5165\u95e8\u9636\u6bb5&#xff0c;\u53ea\u8981\u77e5\u9053\u5b83\u7684\u6838\u5fc3\u4f5c\u7528\u2014\u2014\u201c\u8fde\u63a5\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u201d&#xff0c;\u5c31\u8db3\u591f\u4e86&#xff0c;\u4e0d\u7528\u6df1\u5165\u7814\u7a76API\u7684\u5177\u4f53\u7528\u6cd5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">3. Docker API\u8865\u5145\u7ec6\u8282&#xff08;\u65b0\u624b\u6613\u61c2&#xff0c;\u4e0d\u6df1\u5165\u6280\u672f&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">Docker API\u9ed8\u8ba4\u91c7\u7528HTTP\u534f\u8bae\u8fdb\u884c\u901a\u4fe1&#xff0c;\u5206\u4e3a\u4e24\u79cd\u901a\u4fe1\u65b9\u5f0f&#xff0c;\u5bf9\u5e94\u6211\u4eec\u5e73\u65f6\u7684\u4e24\u79cd\u64cd\u4f5c\u573a\u666f&#xff0c;\u65b0\u624b\u7ed3\u5408\u573a\u666f\u7406\u89e3&#xff0c;\u4e0d\u7528\u8bb0\u6280\u672f\u7ec6\u8282&#xff1a;<\/p>\n<ul>\n<li>\u672c\u5730\u901a\u4fe1&#xff08;\u6700\u5e38\u7528&#xff09;&#xff1a;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u5728\u540c\u4e00\u53f0\u673a\u5668\u65f6&#xff0c;Docker API\u9ed8\u8ba4\u901a\u8fc7\u201c\u672c\u5730UNIX\u5957\u63a5\u5b57\u201d&#xff08;\u53ef\u7406\u89e3\u4e3a\u201c\u672c\u673a\u5185\u90e8\u7684\u901a\u4fe1\u901a\u9053\u201d&#xff09;\u4f20\u9012\u6d88\u606f&#xff0c;\u901f\u5ea6\u5feb\u3001\u65e0\u9700\u914d\u7f6e\u3002\u6bd4\u5982\u6211\u4eec\u5728\u672c\u5730\u7535\u8111\u6572<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker run<\/span><\/span>\u547d\u4ee4&#xff0c;\u5ba2\u6237\u7aef\u901a\u8fc7\u672c\u5730\u5957\u63a5\u5b57&#xff0c;\u5c06\u8bf7\u6c42\u5feb\u901f\u4f20\u9012\u7ed9\u672c\u5730Daemon&#xff0c;\u4e0d\u7528\u7ecf\u8fc7\u7f51\u7edc&#xff0c;\u8fd9\u4e5f\u662f\u672c\u5730\u64cd\u4f5cDocker\u53cd\u5e94\u8fc5\u901f\u7684\u539f\u56e0\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u8fdc\u7a0b\u901a\u4fe1&#xff08;\u8fdb\u9636\u5e38\u7528&#xff09;&#xff1a;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u5728\u4e0d\u540c\u673a\u5668\u65f6&#xff0c;\u9700\u8981\u914d\u7f6eDocker API\u652f\u6301\u201cTCP\u534f\u8bae\u201d&#xff0c;\u901a\u8fc7\u7f51\u7edc\u4f20\u9012\u6d88\u606f\u3002\u6bd4\u5982\u672c\u5730\u5ba2\u6237\u7aef\u64cd\u63a7\u8fdc\u7a0b\u4e91\u670d\u52a1\u5668\u7684Docker&#xff0c;\u5c31\u662f\u901a\u8fc7<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker -H <\/span><\/span><span style=\"background-color:#eff0f1\"><span style=\"color:black\">\u8fdc\u7a0bIP:\u7aef\u53e3<\/span><\/span>\u547d\u4ee4&#xff0c;\u8ba9\u5ba2\u6237\u7aef\u901a\u8fc7TCP\u534f\u8bae&#xff0c;\u5c06API\u8bf7\u6c42\u53d1\u9001\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u7684Daemon&#xff0c;\u5b9e\u73b0\u8fdc\u7a0b\u90e8\u7f72\u3001\u8fdc\u7a0b\u7ba1\u7406\u5bb9\u5668\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0\">\u65b0\u624b\u907f\u5751&#xff1a;\u8fdc\u7a0b\u8c03\u7528Docker API\u65f6&#xff0c;\u5bb9\u6613\u51fa\u73b0\u201c\u8fde\u63a5\u5931\u8d25\u201d&#xff0c;\u5927\u591a\u662f\u56e0\u4e3a\u8fdc\u7a0b\u670d\u52a1\u5668\u7684Daemon\u6ca1\u6709\u5f00\u542fTCP\u76d1\u542c&#xff0c;\u6216\u8005\u670d\u52a1\u5668\u9632\u706b\u5899\u5c4f\u853d\u4e86\u901a\u4fe1\u7aef\u53e3&#xff08;\u9ed8\u8ba4\u7aef\u53e32375&#xff09;&#xff0c;\u540e\u7eed\u8bb2\u8fdc\u7a0b\u90e8\u7f72\u65f6&#xff0c;\u4f1a\u8be6\u7ec6\u8865\u5145\u914d\u7f6e\u6b65\u9aa4&#xff0c;\u5173\u6ce8\u6211\u4e0d\u8ff7\u8def\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">4. \u5b9e\u64cd\u5c0f\u6d4b\u8bd5&#xff08;\u9a8c\u8bc1API\u4f5c\u7528&#xff0c;\u65b0\u624b\u53ef\u52a8\u624b\u5c1d\u8bd5&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u64cd\u4f5c&#xff0c;\u95f4\u63a5\u9a8c\u8bc1Docker API\u7684\u5b58\u5728&#xff08;\u4e0d\u7528\u624b\u52a8\u8c03\u7528API&#xff0c;\u5168\u7a0b\u7528\u57fa\u7840\u547d\u4ee4&#xff09;&#xff1a;<\/p>\n<li>\u6253\u5f00\u4e24\u4e2a\u7ec8\u7aef\u7a97\u53e3&#xff0c;\u7b2c\u4e00\u4e2a\u7a97\u53e3\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker daemon<\/span><\/span>&#xff08;\u542f\u52a8Daemon\u5e76\u663e\u793a\u65e5\u5fd7&#xff0c;\u65e5\u5fd7\u4e2d\u4f1a\u51fa\u73b0\u201cAPI listen on \/var\/run\/docker.sock\u201d&#xff0c;\u8868\u793aAPI\u5df2\u542f\u52a8&#xff0c;\u6b63\u5728\u76d1\u542c\u672c\u5730\u901a\u4fe1&#xff09;&#xff1b;<\/li>\n<li>\u7b2c\u4e8c\u4e2a\u7a97\u53e3\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker ps<\/span><\/span>&#xff0c;\u6267\u884c\u540e\u89c2\u5bdf\u7b2c\u4e00\u4e2a\u7a97\u53e3\u7684\u65e5\u5fd7&#xff0c;\u4f1a\u770b\u5230\u201cAPI request received: GET \/v1.45\/containers\/json\u201d&#xff08;\u8868\u793aAPI\u63a5\u6536\u4e86\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42&#xff09;&#xff1b;<\/li>\n<li>\u7b2c\u4e8c\u4e2a\u7a97\u53e3\u4f1a\u6b63\u5e38\u663e\u793a\u5bb9\u5668\u5217\u8868&#xff0c;\u800c\u7b2c\u4e00\u4e2a\u7a97\u53e3\u7684\u65e5\u5fd7&#xff0c;\u5c31\u662fAPI\u4f20\u9012\u8bf7\u6c42\u3001Daemon\u6267\u884c\u8bf7\u6c42\u7684\u5168\u8fc7\u7a0b\u8bb0\u5f55&#xff0c;\u65b0\u624b\u53ef\u4ee5\u76f4\u89c2\u770b\u5230\u201c\u5ba2\u6237\u7aef\u2192API\u2192Daemon\u201d\u7684\u901a\u4fe1\u94fe\u8def\u3002<\/li>\n<p style=\"margin-left:0;margin-right:0\">\u6d4b\u8bd5\u5b8c\u6210\u540e&#xff0c;\u6309Ctrl&#043;C\u505c\u6b62\u7b2c\u4e00\u4e2a\u7a97\u53e3\u7684Daemon&#xff0c;\u518d\u91cd\u542fDocker&#xff08;Windows\/Mac\u91cd\u542fDocker Desktop&#xff0c;Linux\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">systemctl restart docker<\/span><\/span>&#xff09;&#xff0c;\u907f\u514d\u5f71\u54cd\u540e\u7eed\u64cd\u4f5c\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5173\u952e\u8865\u5145&#xff1a;Docker C\/S\u67b6\u6784\u5b8c\u6574\u5de5\u4f5c\u6d41\u7a0b&#xff08;\u5fc5\u61c2&#xff0c;\u4e32\u8054\u6240\u6709\u7ec4\u4ef6&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u524d\u9762\u6211\u4eec\u5206\u522b\u62c6\u89e3\u4e863\u4e2a\u6838\u5fc3\u7ec4\u4ef6&#xff0c;\u5f88\u591a\u65b0\u624b\u53ef\u80fd\u8fd8\u662f\u4f1a\u56f0\u60d1\u201c\u4e09\u4e2a\u7ec4\u4ef6\u600e\u4e48\u914d\u5408\u5de5\u4f5c\u201d&#xff0c;\u4e0b\u9762\u7ed3\u5408\u6211\u4eec\u6700\u5e38\u7528\u7684<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker run nginx:latest<\/span><\/span>\u547d\u4ee4&#xff0c;\u62c6\u89e3\u5b8c\u6574\u5de5\u4f5c\u6d41\u7a0b&#xff0c;\u4e32\u8054\u5ba2\u6237\u7aef\u3001API\u3001Daemon&#xff0c;\u8ba9\u4f60\u5f7b\u5e95\u660e\u767d\u201c\u6572\u4e0b\u547d\u4ee4\u540e&#xff0c;\u80cc\u540e\u5230\u5e95\u53d1\u751f\u4e86\u4ec0\u4e48\u201d&#xff0c;\u5168\u7a0b\u8d34\u5408\u65b0\u624b\u5b9e\u64cd\u573a\u666f&#xff1a;<\/p>\n<li>\u7b2c\u4e00\u6b65&#xff1a;\u5ba2\u6237\u7aef\u53d1\u8d77\u8bf7\u6c42&#xff08;\u7528\u6237\u64cd\u4f5c&#xff09;\u2014\u2014\u6211\u4eec\u5728\u7ec8\u7aef\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker run nginx:latest<\/span><\/span>&#xff0c;Docker Client&#xff08;\u5ba2\u6237\u7aef&#xff09;\u63a5\u6536\u8be5\u547d\u4ee4&#xff0c;\u9996\u5148\u6821\u9a8c\u547d\u4ee4\u683c\u5f0f\u662f\u5426\u6b63\u786e&#xff08;\u6bd4\u5982\u662f\u5426\u8f93\u9519\u547d\u4ee4\u5355\u8bcd&#xff09;&#xff0c;\u6821\u9a8c\u901a\u8fc7\u540e&#xff0c;\u5c06\u8be5\u547d\u4ee4\u201c\u7ffb\u8bd1\u201d\u6210Docker API\u80fd\u8bc6\u522b\u7684\u6807\u51c6\u5316\u8bf7\u6c42&#xff08;\u6bd4\u5982\u201c\u8bf7\u6c42\u521b\u5efa\u5e76\u542f\u52a8\u4e00\u4e2a\u57fa\u4e8enginx:latest\u955c\u50cf\u7684\u5bb9\u5668\u201d&#xff09;\u3002<\/li>\n<li>\u7b2c\u4e8c\u6b65&#xff1a;API\u4f20\u9012\u8bf7\u6c42&#xff08;\u901a\u4fe1\u6865\u6881&#xff09;\u2014\u2014Docker Client\u901a\u8fc7Docker API&#xff0c;\u5c06\u6807\u51c6\u5316\u8bf7\u6c42\u4f20\u9012\u7ed9Docker Daemon&#xff08;\u670d\u52a1\u5668&#xff09;\u3002\u5982\u679c\u662f\u672c\u5730\u64cd\u4f5c&#xff0c;\u901a\u8fc7\u672c\u5730UNIX\u5957\u63a5\u5b57\u4f20\u9012&#xff1b;\u5982\u679c\u662f\u8fdc\u7a0b\u64cd\u4f5c&#xff0c;\u901a\u8fc7TCP\u534f\u8bae\u4f20\u9012&#xff0c;API\u5168\u7a0b\u8d1f\u8d23\u201c\u7ffb\u8bd1&#043;\u4f20\u9012\u201d&#xff0c;\u786e\u4fddDaemon\u80fd\u542c\u61c2\u8bf7\u6c42\u3002<\/li>\n<li>\u7b2c\u4e09\u6b65&#xff1a;Daemon\u6267\u884c\u8bf7\u6c42&#xff08;\u6838\u5fc3\u6267\u884c&#xff09;\u2014\u2014Daemon\u63a5\u6536API\u4f20\u9012\u7684\u8bf7\u6c42\u540e&#xff0c;\u5f00\u59cb\u6267\u884c\u5177\u4f53\u64cd\u4f5c&#xff0c;\u5206\u4e3a4\u4e2a\u5c0f\u6b65\u9aa4&#xff0c;\u548c\u6211\u4eec\u4e4b\u524d\u7ec3\u8fc7\u7684\u5b9e\u64cd\u5b8c\u5168\u5bf9\u5e94&#xff1a;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2460 \u68c0\u67e5\u672c\u5730\u955c\u50cf&#xff1a;Daemon\u5148\u67e5\u8be2\u672c\u5730\u955c\u50cf\u4ed3\u5e93&#xff0c;\u5224\u65ad\u662f\u5426\u5b58\u5728nginx:latest\u955c\u50cf&#xff1b;<\/li>\n<li>\u2461 \u62c9\u53d6\u955c\u50cf&#xff08;\u82e5\u4e0d\u5b58\u5728&#xff09;&#xff1a;\u5982\u679c\u672c\u5730\u6ca1\u6709\u8be5\u955c\u50cf&#xff0c;Daemon\u81ea\u52a8\u8fde\u63a5\u914d\u7f6e\u7684\u955c\u50cf\u4ed3\u5e93&#xff08;\u9ed8\u8ba4Docker Hub&#xff09;&#xff0c;\u4e0b\u8f7dnginx:latest\u955c\u50cf&#xff0c;\u4e0b\u8f7d\u5b8c\u6210\u540e\u5b58\u50a8\u5728\u672c\u5730&#xff1b;<\/li>\n<li>\u2462 \u521b\u5efa\u5bb9\u5668&#xff1a;\u57fa\u4e8enginx:latest\u955c\u50cf&#xff0c;\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5bb9\u5668&#xff0c;\u5206\u914d\u72ec\u7acb\u7684\u5bb9\u5668ID\u3001\u9ed8\u8ba4\u7684\u7f51\u7edc\u5730\u5740&#xff0c;\u914d\u7f6e\u5bb9\u5668\u7684\u57fa\u7840\u8fd0\u884c\u53c2\u6570&#xff1b;<\/li>\n<li>\u2463 \u542f\u52a8\u5bb9\u5668&#xff1a;\u542f\u52a8\u5bb9\u5668\u5185\u7684Nginx\u5e94\u7528\u8fdb\u7a0b&#xff0c;\u5c06\u5bb9\u5668\u72b6\u6001\u8bbe\u7f6e\u4e3a\u201cUp\u201d&#xff08;\u8fd0\u884c\u4e2d&#xff09;&#xff0c;\u540c\u65f6\u8bb0\u5f55\u5bb9\u5668\u542f\u52a8\u65e5\u5fd7\u3002<\/li>\n<li>\u7b2c\u56db\u6b65&#xff1a;\u7ed3\u679c\u53cd\u5411\u4f20\u9012\u2014\u2014Daemon\u6267\u884c\u5b8c\u6210\u540e&#xff0c;\u5c06\u6267\u884c\u7ed3\u679c&#xff08;\u5bb9\u5668ID\u3001\u5bb9\u5668\u8fd0\u884c\u72b6\u6001\u3001\u542f\u52a8\u6210\u529f\u63d0\u793a&#xff09;\u901a\u8fc7Docker API&#xff0c;\u53cd\u5411\u4f20\u9012\u7ed9Docker Client\u3002<\/li>\n<li>\u7b2c\u4e94\u6b65&#xff1a;\u5ba2\u6237\u7aef\u5c55\u793a\u7ed3\u679c\u2014\u2014Docker Client\u63a5\u6536Daemon\u8fd4\u56de\u7684\u7ed3\u679c&#xff0c;\u6574\u7406\u6210\u6211\u4eec\u80fd\u770b\u61c2\u7684\u683c\u5f0f&#xff08;\u6bd4\u5982\u7ec8\u7aef\u663e\u793a\u201cdocker run\u201d\u6267\u884c\u540e\u7684\u5bb9\u5668ID&#xff09;&#xff0c;\u5c55\u793a\u5728\u7ec8\u7aef\u4e0a&#xff0c;\u6574\u4e2a\u5de5\u4f5c\u6d41\u7a0b\u7ed3\u675f\u3002<\/li>\n<p style=\"margin-left:0;margin-right:0\">\u901a\u4fd7\u603b\u7ed3&#xff1a;\u6574\u4e2a\u6d41\u7a0b\u5c31\u50cf\u201c\u987e\u5ba2\u70b9\u5355\u2192\u670d\u52a1\u5458\u4f20\u5355\u2192\u540e\u53a8\u505a\u83dc\u2192\u670d\u52a1\u5458\u4f20\u83dc\u2192\u987e\u5ba2\u7528\u9910\u201d&#xff0c;\u4e09\u4e2a\u7ec4\u4ef6\u5206\u5de5\u660e\u786e\u3001\u534f\u540c\u5de5\u4f5c&#xff0c;\u6bcf\u4e00\u6b65\u90fd\u6709\u5bf9\u5e94\u7684\u64cd\u4f5c&#xff0c;\u65b0\u624b\u5bf9\u7167\u81ea\u5df1\u6572\u547d\u4ee4\u7684\u8fc7\u7a0b&#xff0c;\u5c31\u80fd\u8f7b\u677e\u4e32\u8054\u8d77\u6240\u6709\u5e95\u5c42\u903b\u8f91&#xff0c;\u518d\u4e5f\u4e0d\u7528\u56f0\u60d1\u201c\u547d\u4ee4\u80cc\u540e\u5230\u5e95\u5728\u505a\u4ec0\u4e48\u201d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5ef6\u4f38\u8865\u5145&#xff1a;Docker C\/S\u67b6\u6784\u7684\u4f18\u52bf&#xff08;\u65b0\u624b\u5fc5\u77e5&#xff0c;\u7406\u89e3\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u8bbe\u8ba1&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5f88\u591a\u65b0\u624b\u4f1a\u95ee\u201c\u4e3a\u4ec0\u4e48Docker\u8981\u7528C\/S\u67b6\u6784&#xff0c;\u800c\u4e0d\u662f\u5355\u7a0b\u5e8f\u8bbe\u8ba1\u201d&#xff0c;\u5176\u5b9e\u6838\u5fc3\u662f\u4e3a\u4e86\u9002\u914d\u6211\u4eec\u5e73\u65f6\u7684\u4f7f\u7528\u573a\u666f&#xff0c;\u5e26\u67653\u4e2a\u5173\u952e\u4f18\u52bf&#xff0c;\u7ed3\u5408\u5b9e\u64cd\u573a\u666f\u7406\u89e3&#xff0c;\u80fd\u5e2e\u6211\u4eec\u66f4\u597d\u5730\u8fd0\u7528Docker&#xff1a;<\/p>\n<ul>\n<li>\u4f18\u52bf1&#xff1a;\u652f\u6301\u8fdc\u7a0b\u64cd\u4f5c&#xff08;\u6838\u5fc3\u4f18\u52bf&#xff09;\u2014\u2014\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u53ef\u5206\u79bb&#xff0c;\u8ba9\u6211\u4eec\u80fd\u5728\u672c\u5730\u7535\u8111&#xff0c;\u64cd\u63a7\u8fdc\u7a0b\u4e91\u670d\u52a1\u5668\u4e0a\u7684Docker&#xff0c;\u5b9e\u73b0\u201c\u8fdc\u7a0b\u90e8\u7f72\u3001\u8fdc\u7a0b\u7ba1\u7406\u201d\u3002\u6bd4\u5982\u6211\u4eec\u5f00\u53d1\u5b8c\u9879\u76ee&#xff0c;\u5728\u672c\u5730\u6572\u4e00\u6761\u547d\u4ee4&#xff0c;\u5c31\u80fd\u8ba9\u8fdc\u7a0b\u670d\u52a1\u5668\u542f\u52a8\u5bb9\u5668\u3001\u90e8\u7f72\u9879\u76ee&#xff0c;\u4e0d\u7528\u8fdc\u7a0b\u767b\u5f55\u670d\u52a1\u5668&#xff0c;\u5927\u5e45\u63d0\u5347\u5de5\u4f5c\u6548\u7387&#xff0c;\u8fd9\u4e5f\u662f\u5927\u5382\u5e38\u7528\u7684\u90e8\u7f72\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u4f18\u52bf2&#xff1a;\u8d44\u6e90\u9694\u79bb&#xff0c;\u66f4\u7a33\u5b9a\u2014\u2014Daemon\u5728\u540e\u53f0\u72ec\u7acb\u8fd0\u884c&#xff0c;\u5ba2\u6237\u7aef\u53ea\u8d1f\u8d23\u53d1\u547d\u4ee4&#xff0c;\u4e24\u8005\u8d44\u6e90\u9694\u79bb&#xff0c;\u4e92\u4e0d\u5f71\u54cd\u3002\u6bd4\u5982\u5ba2\u6237\u7aef\u5d29\u6e83&#xff08;\u6bd4\u5982\u7ec8\u7aef\u610f\u5916\u5173\u95ed&#xff09;&#xff0c;\u540e\u53f0\u7684Daemon\u548c\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668\u4e0d\u4f1a\u53d7\u5230\u4efb\u4f55\u5f71\u54cd&#xff0c;\u5bb9\u5668\u4f9d\u7136\u80fd\u6b63\u5e38\u8fd0\u884c&#xff0c;\u4fdd\u969c\u5e94\u7528\u7a33\u5b9a\u6027&#xff1b;\u53cd\u4e4b&#xff0c;Daemon\u51fa\u73b0\u4e34\u65f6\u5f02\u5e38&#xff0c;\u5ba2\u6237\u7aef\u53ea\u662f\u65e0\u6cd5\u53d1\u547d\u4ee4&#xff0c;\u4e0d\u4f1a\u5f71\u54cd\u672c\u5730\u5176\u4ed6\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u4f18\u52bf3&#xff1a;\u53ef\u6269\u5c55\u3001\u6613\u7ef4\u62a4\u2014\u2014C\/S\u67b6\u6784\u53ef\u5355\u72ec\u5347\u7ea7\u67d0\u4e00\u4e2a\u7ec4\u4ef6&#xff0c;\u6bd4\u5982\u5347\u7ea7Docker Client&#xff08;\u4f18\u5316\u547d\u4ee4\u4ea4\u4e92&#xff09;&#xff0c;\u4e0d\u4f1a\u5f71\u54cdDaemon\u548c\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668&#xff1b;\u5347\u7ea7Daemon&#xff08;\u589e\u52a0\u65b0\u529f\u80fd&#xff09;&#xff0c;\u4e5f\u4e0d\u4f1a\u5f71\u54cd\u5ba2\u6237\u7aef\u7684\u57fa\u7840\u4f7f\u7528\u3002\u540c\u65f6&#xff0c;\u591a\u4e2a\u5ba2\u6237\u7aef\u53ef\u4ee5\u540c\u65f6\u8fde\u63a5\u540c\u4e00\u4e2aDaemon&#xff0c;\u6bd4\u5982\u591a\u4e2a\u5f00\u53d1\u4eba\u5458&#xff0c;\u53ef\u901a\u8fc7\u5404\u81ea\u7684\u5ba2\u6237\u7aef&#xff0c;\u64cd\u63a7\u540c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u7684Docker&#xff0c;\u65b9\u4fbf\u56e2\u961f\u534f\u4f5c\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0\">\u65b0\u624b\u5fc5\u770b&#xff1a;\u67b6\u6784\u5e95\u5c42\u907f\u5751\u70b9&#xff08;\u8865\u5145\u5b8c\u6574\u7248&#xff0c;\u5c11\u8d70\u5f2f\u8def&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7ed3\u5408\u524d\u9762\u7684\u7ec4\u4ef6\u62c6\u89e3\u548c\u5de5\u4f5c\u6d41\u7a0b&#xff0c;\u8865\u5145\u51e0\u4e2a\u65b0\u624b\u5728\u67b6\u6784\u5c42\u9762\u5bb9\u6613\u8e29\u7684\u5751&#xff0c;\u90fd\u662f\u5e73\u65f6\u5b9e\u64cd\u4e2d\u9ad8\u9891\u9047\u5230\u7684&#xff0c;\u63d0\u524d\u907f\u5f00&#xff0c;\u8282\u7701\u6392\u67e5\u95ee\u9898\u7684\u65f6\u95f4&#xff1a;<\/p>\n<ul>\n<li>\u57511&#xff1a;\u6df7\u6dc6\u201c\u5ba2\u6237\u7aef\u201d\u548c\u201cDaemon\u201d&#xff0c;\u542f\u52a8\u5bb9\u5668\u5931\u8d25\u5c31\u4e71\u6539\u547d\u4ee4\u2014\u2014\u542f\u52a8\u5bb9\u5668\u3001\u62c9\u53d6\u955c\u50cf\u5931\u8d25&#xff0c;\u4f18\u5148\u68c0\u67e5Docker Daemon\u662f\u5426\u542f\u52a8&#xff08;Windows\u770bDocker Desktop\u662f\u5426\u6253\u5f00&#xff0c;Linux\u8f93\u5165<span style=\"background-color:#eff0f1\"><span style=\"color:black\">systemctl status docker<\/span><\/span>\u67e5\u770b\u72b6\u6001&#xff09;&#xff0c;90%\u7684\u542f\u52a8\u5931\u8d25&#xff0c;\u90fd\u662fDaemon\u672a\u542f\u52a8\u5bfc\u81f4\u7684&#xff0c;\u4e0d\u662f\u547d\u4ee4\u8f93\u9519\u4e86\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u57512&#xff1a;\u8fdc\u7a0b\u8c03\u7528Docker\u65f6&#xff0c;\u63d0\u793a\u201c\u65e0\u6cd5\u8fde\u63a5Daemon\u201d\u2014\u2014\u5927\u6982\u7387\u662f\u4e24\u4e2a\u539f\u56e0&#xff1a;\u2460 \u8fdc\u7a0b\u670d\u52a1\u5668\u7684Daemon\u672a\u5f00\u542fTCP\u76d1\u542c&#xff1b;\u2461 \u670d\u52a1\u5668\u9632\u706b\u5899\u5c4f\u853d\u4e862375&#xff08;\u9ed8\u8ba4&#xff09;\u901a\u4fe1\u7aef\u53e3&#xff0c;\u540e\u7eed\u4f1a\u8865\u5145\u5177\u4f53\u914d\u7f6e\u6b65\u9aa4&#xff0c;\u5173\u6ce8\u6211&#xff0c;\u540e\u7eed\u66f4\u65b0Docker\u8fdc\u7a0b\u90e8\u7f72\u6559\u7a0b\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u57513&#xff1a;\u4ee5\u4e3a\u201c\u5220\u9664\u5ba2\u6237\u7aef&#xff0c;\u5bb9\u5668\u5c31\u4f1a\u505c\u6b62\u201d\u2014\u2014\u5ba2\u6237\u7aef\u548cDaemon\u76f8\u4e92\u72ec\u7acb&#xff0c;\u5220\u9664\u5ba2\u6237\u7aef&#xff08;\u6bd4\u5982\u5378\u8f7d\u7ec8\u7aef\u5de5\u5177&#xff09;&#xff0c;\u540e\u53f0\u7684Daemon\u548c\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668\u4f9d\u7136\u4f1a\u6b63\u5e38\u8fd0\u884c&#xff0c;\u5bb9\u5668\u4e0d\u4f1a\u53d7\u5230\u4efb\u4f55\u5f71\u54cd&#xff1b;\u53ea\u6709\u505c\u6b62Daemon&#xff0c;\u5bb9\u5668\u624d\u4f1a\u5168\u90e8\u505c\u6b62\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u57514&#xff1a;\u4fee\u6539\u5bb9\u5668\u914d\u7f6e\u540e&#xff0c;\u4ee5\u4e3a\u662fDaemon\u672a\u751f\u6548\u2014\u2014\u4fee\u6539\u5bb9\u5668\u914d\u7f6e&#xff08;\u6bd4\u5982\u4fee\u6539Nginx\u914d\u7f6e&#xff09;&#xff0c;\u9700\u8981\u91cd\u542f\u5bb9\u5668&#xff08;<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker restart <\/span><\/span><span style=\"background-color:#eff0f1\"><span style=\"color:black\">\u5bb9\u5668\u540d\u79f0<\/span><\/span>&#xff09;&#xff0c;\u548cDaemon\u65e0\u5173&#xff1b;Daemon\u53ea\u8d1f\u8d23\u6267\u884c\u547d\u4ee4&#xff0c;\u4e0d\u4f1a\u4e3b\u52a8\u76d1\u6d4b\u5bb9\u5668\u5185\u90e8\u914d\u7f6e\u7684\u53d8\u5316\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u57515&#xff1a;\u76f2\u76ee\u5347\u7ea7Docker&#xff0c;\u5bfc\u81f4Daemon\u5f02\u5e38\u2014\u2014\u5347\u7ea7Docker\u65f6&#xff0c;\u4f1a\u540c\u65f6\u5347\u7ea7Client\u548cDaemon&#xff0c;\u5347\u7ea7\u524d\u5efa\u8bae\u5148\u505c\u6b62\u6240\u6709\u5bb9\u5668&#xff08;<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker stop $(docker ps -aq)<\/span><\/span>&#xff09;&#xff0c;\u907f\u514dDaemon\u5347\u7ea7\u8fc7\u7a0b\u4e2d&#xff0c;\u5bb9\u5668\u5f02\u5e38\u9000\u51fa&#xff0c;\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0\">\u5168\u6587\u603b\u7ed3&#xff08;\u6838\u5fc3\u56de\u987e&#xff0c;\u65b0\u624b\u5fc5\u80cc&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u672c\u6587\u5b8c\u6574\u62c6\u89e3\u4e86Docker C\/S\u67b6\u6784\u7684\u5e95\u5c42\u539f\u7406&#xff0c;\u6838\u5fc3\u8bb0\u4f4f3\u70b9&#xff0c;\u5c31\u80fd\u5f7b\u5e95\u5403\u900f&#xff0c;\u7ed3\u5408\u524d\u4e24\u7bc7\u7684\u5b9e\u64cd\u547d\u4ee4&#xff0c;\u5b9e\u73b0\u201c\u61c2\u539f\u7406\u3001\u4f1a\u5b9e\u64cd\u201d&#xff1a;<\/p>\n<li>\u6838\u5fc3\u67b6\u6784&#xff1a;Docker\u662fC\/S\u67b6\u6784&#xff0c;\u7531\u300c\u5ba2\u6237\u7aef&#xff08;\u53d1\u547d\u4ee4&#xff09;\u3001Daemon&#xff08;\u6267\u884c\u547d\u4ee4&#xff09;\u3001API&#xff08;\u4f20\u6d88\u606f&#xff09;\u300d\u4e09\u8005\u7ec4\u6210&#xff0c;\u6838\u5fc3\u903b\u8f91\u662f\u201c\u5ba2\u6237\u7aef\u53d1\u547d\u4ee4\u3001API\u4f20\u6d88\u606f\u3001Daemon\u505a\u6267\u884c\u201d\u3002<\/li>\n<li>\u7ec4\u4ef6\u4f5c\u7528&#xff1a;\u5ba2\u6237\u7aef\u662f\u64cd\u4f5c\u5165\u53e3&#xff08;\u6572\u547d\u4ee4&#xff09;&#xff0c;Daemon\u662f\u6838\u5fc3\u5927\u8111&#xff08;\u505a\u5b9e\u64cd&#xff09;&#xff0c;API\u662f\u901a\u4fe1\u6865\u6881&#xff08;\u4f20\u6d88\u606f&#xff09;&#xff0c;\u4e09\u8005\u534f\u540c&#xff0c;\u5b8c\u6210\u6240\u6709Docker\u64cd\u4f5c\u3002<\/li>\n<li>\u5de5\u4f5c\u6d41\u7a0b&#xff1a;\u4ee5<span style=\"background-color:#eff0f1\"><span style=\"color:black\">docker run<\/span><\/span>\u4e3a\u4f8b&#xff0c;\u5ba2\u6237\u7aef\u53d1\u8bf7\u6c42\u2192API\u4f20\u8bf7\u6c42\u2192Daemon\u6267\u884c&#xff08;\u67e5\u955c\u50cf\u2192\u62c9\u955c\u50cf\u2192\u521b\u5bb9\u5668\u2192\u542f\u5bb9\u5668&#xff09;\u2192API\u4f20\u7ed3\u679c\u2192\u5ba2\u6237\u7aef\u5c55\u793a\u7ed3\u679c&#xff0c;\u4e00\u6b65\u90fd\u4e0d\u80fd\u5c11\u3002<\/li>\n<p style=\"margin-left:0;margin-right:0\">\u770b\u5b8c\u8fd9\u7bc7&#xff0c;\u76f8\u4fe1\u4f60\u5df2\u7ecf\u6446\u8131\u201c\u53ea\u4f1a\u6572Docker\u547d\u4ee4\u3001\u4e0d\u61c2\u5e95\u5c42\u539f\u7406\u201d\u7684\u56f0\u5883&#xff0c;\u4e0d\u4ec5\u77e5\u9053\u201c\u600e\u4e48\u7528\u201d&#xff0c;\u8fd8\u77e5\u9053\u201c\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u7528\u201d\u3002\u540e\u7eed\u6211\u4f1a\u6301\u7eed\u66f4\u65b0Docker\u7cfb\u5217\u6559\u7a0b&#xff0c;\u4e0b\u4e00\u7bc7\u7ed9\u5927\u5bb6\u8bb2\u201cDocker\u5e38\u7528\u547d\u4ee4\u6c47\u603b&#xff08;\u65b0\u624b\u5fc5\u5907&#xff0c;\u6536\u85cf\u5373\u7528&#xff09;\u201d&#xff0c;\u540c\u65f6\u8865\u5145\u955c\u50cf\u52a0\u901f\u5668\u914d\u7f6e\u3001Docker\u8fdc\u7a0b\u90e8\u7f72\u5b9e\u64cd&#xff0c;\u4e00\u6b65\u6b65\u5e26\u5927\u5bb6\u4ece\u96f6\u5230\u4e00\u5403\u900fDocker\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u89c9\u5f97\u8fd9\u7bc7\u6587\u7ae0\u6709\u7528\u7684\u8bdd&#xff0c;\u6536\u85cf&#043;\u5173\u6ce8&#xff0c;\u8bc4\u8bba\u533a\u6263\u201cDocker\u67b6\u6784\u201d&#xff0c;\u6211\u4f1a\u628a\u6574\u7406\u597d\u7684\u201cC\/S\u67b6\u6784\u6838\u5fc3\u6d41\u7a0b\u56fe\u89e3&#xff08;\u6587\u5b57\u7248&#xff0c;\u65e0\u622a\u56fe&#xff0c;\u65b0\u624b\u80fd\u770b\u61c2&#xff09;\u201d&#043;\u201c\u67b6\u6784\u5e95\u5c42\u907f\u5751\u624b\u518c\u201d&#xff0c;\u514d\u8d39\u5206\u4eab\u7ed9\u5927\u5bb6&#xff0c;\u52a9\u529b\u5927\u5bb6\u5feb\u901f\u5de9\u56fa\u77e5\u8bc6\u70b9&#xff0c;\u8f7b\u677e\u4e0a\u624bDocker\u8fdb\u9636\u5185\u5bb9&#xff01;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5173\u6ce8\u6211&#xff0c;\u540e\u7eed\u6301\u7eed\u8f93\u51faDocker\u3001\u8fd0\u7ef4\u3001\u5f00\u53d1\u76f8\u5173\u5e72\u8d27&#xff0c;\u65b0\u624b\u4e5f\u80fd\u8f7b\u677e\u8ddf\u4e0a&#xff0c;\u5c11\u8d70\u5f2f\u8def&#xff5e;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,838,763,43,188],"topic":[],"class_list":["post-121619","post","type-post","status-publish","format-standard","hentry","category-server","tag-docker","tag-eureka","tag-763","tag-43","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker\u67b6\u6784\u5e95\u5c42\u5206\u6790\uff1a\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\uff08C\/S\uff09\u67b6\u6784\u5de5\u4f5c\u539f\u7406\u6587\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/121619.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker\u67b6\u6784\u5e95\u5c42\u5206\u6790\uff1a\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\uff08C\/S\uff09\u67b6\u6784\u5de5\u4f5c\u539f\u7406\u6587\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/121619.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-02T21:40:49+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/121619.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/121619.html\",\"name\":\"Docker\u67b6\u6784\u5e95\u5c42\u5206\u6790\uff1a\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\uff08C\/S\uff09\u67b6\u6784\u5de5\u4f5c\u539f\u7406\u6587\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-02T21:40:49+00:00\",\"dateModified\":\"2026-11-02T21:40:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/121619.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/121619.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/121619.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker\u67b6\u6784\u5e95\u5c42\u5206\u6790\uff1a\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\uff08C\/S\uff09\u67b6\u6784\u5de5\u4f5c\u539f\u7406\u6587\u89e3\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docker\u67b6\u6784\u5e95\u5c42\u5206\u6790\uff1a\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\uff08C\/S\uff09\u67b6\u6784\u5de5\u4f5c\u539f\u7406\u6587\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/121619.html","og_locale":"zh_CN","og_type":"article","og_title":"Docker\u67b6\u6784\u5e95\u5c42\u5206\u6790\uff1a\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\uff08C\/S\uff09\u67b6\u6784\u5de5\u4f5c\u539f\u7406\u6587\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/121619.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-02T21:40:49+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/121619.html","url":"https:\/\/www.wsisp.com\/helps\/121619.html","name":"Docker\u67b6\u6784\u5e95\u5c42\u5206\u6790\uff1a\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\uff08C\/S\uff09\u67b6\u6784\u5de5\u4f5c\u539f\u7406\u6587\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-02T21:40:49+00:00","dateModified":"2026-11-02T21:40:49+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/121619.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/121619.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/121619.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Docker\u67b6\u6784\u5e95\u5c42\u5206\u6790\uff1a\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\uff08C\/S\uff09\u67b6\u6784\u5de5\u4f5c\u539f\u7406\u6587\u89e3\u6790"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/121619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=121619"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/121619\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=121619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=121619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=121619"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=121619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}