{"id":18266,"date":"2024-11-18T12:49:13","date_gmt":"2024-11-18T04:49:13","guid":{"rendered":"https:\/\/fwq.ai\/blog\/18266\/"},"modified":"2024-11-18T12:49:13","modified_gmt":"2024-11-18T04:49:13","slug":"docker%e7%bd%91%e7%bb%9c%e8%bf%9e%e6%8e%a5%e6%80%8e%e4%b9%88%e5%81%9c%e6%ad%a2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/18266\/","title":{"rendered":"docker\u7f51\u7edc\u8fde\u63a5\u600e\u4e48\u505c\u6b62"},"content":{"rendered":"<blockquote><p>\n  \u8981\u505c\u6b62 docker \u7f51\u7edc\u8fde\u63a5\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a1. \u786e\u5b9a\u8981\u505c\u6b62\u7684\u7f51\u7edc\u540d\u79f0\uff1b2. \u4f7f\u7528 docker network stop \u547d\u4ee4\u505c\u6b62\u7f51\u7edc\uff1b3. \u68c0\u67e5\u505c\u6b62\u72b6\u6001\uff0c\u4ee5\u9a8c\u8bc1\u7f51\u7edc\u5df2\u505c\u6b62\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/05\/2024060507271578438.jpg\" class=\"aligncenter\" title=\"docker\u7f51\u7edc\u8fde\u63a5\u600e\u4e48\u505c\u6b62\u63d2\u56fe\" alt=\"docker\u7f51\u7edc\u8fde\u63a5\u600e\u4e48\u505c\u6b62\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u505c\u6b62 Docker \u7f51\u7edc\u8fde\u63a5<\/strong><\/p>\n<p>\u505c\u6b62 Docker \u7f51\u7edc\u8fde\u63a5\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p><strong>1. \u786e\u5b9a\u8981\u505c\u6b62\u7684\u7f51\u7edc\u540d\u79f0<\/strong><\/p>\n<p>\u8981\u505c\u6b62\u7684\u7f51\u7edc\u7684\u540d\u79f0\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u786e\u5b9a\uff1a<\/p>\n<pre>docker network ls<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u5c06\u663e\u793a\u6240\u6709\u6d3b\u52a8\u7684 Docker \u7f51\u7edc\u3002<\/p>\n<p><strong>2. \u4f7f\u7528 stop \u547d\u4ee4<\/strong><\/p>\n<p>\u8981\u505c\u6b62\u7279\u5b9a\u7684\u7f51\u7edc\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5176\u4e2d \u662f\u8981\u505c\u6b62\u7684\u7f51\u7edc\u7684\u540d\u79f0\uff1a <\/p>\n<pre>docker network stop &lt;network name&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>3. \u68c0\u67e5\u505c\u6b62\u72b6\u6001<\/strong><\/p>\n<p>\u8981\u9a8c\u8bc1\u7f51\u7edc\u662f\u5426\u5df2\u505c\u6b62\uff0c\u8bf7\u518d\u6b21\u8fd0\u884c  network ls \u547d\u4ee4\u3002\u505c\u6b62\u7684\u7f51\u7edc\u5c06\u4e0d\u518d\u51fa\u73b0\u5728\u5217\u8868\u4e2d\u3002<\/p>\n<p><strong>\u793a\u4f8b<\/strong><\/p>\n<p>\u5047\u8bbe\u6211\u4eec\u8981\u505c\u6b62\u540d\u4e3a &#8220;my-network&#8221; \u7684\u7f51\u7edc\uff1a<\/p>\n<ol>\n<li>\u786e\u5b9a\u7f51\u7edc\u540d\u79f0\uff1adocker network ls<\/li>\n<li>\u505c\u6b62\u7f51\u7edc\uff1adocker network stop my-network<\/li>\n<li>\u68c0\u67e5\u505c\u6b62\u72b6\u6001\uff1adocker network ls<\/li>\n<\/ol>\n<p>\u6210\u529f\u505c\u6b62\u7f51\u7edc\u540e\uff0c\u8be5\u7f51\u7edc\u5c06\u4e0d\u518d\u53ef\u7528\uff0c\u5176\u5173\u8054\u5bb9\u5668\u5c06\u5931\u53bb\u8fde\u63a5\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7f51\u7edc\u8fde\u63a5\u600e\u4e48\u505c\u6b62\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u505c\u6b62 docker \u7f51\u7edc\u8fde\u63a5\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a1. \u786e\u5b9a\u8981\u505c\u6b62\u7684\u7f51\u7edc\u540d\u79f0\uff1b2. \u4f7f\u7528 docker network stop \u547d\u4ee4\u505c\u6b62\u7f51\u7edc\uff1b3. \u68c0\u67e5\u505c\u6b62\u72b6\u6001\uff0c\u4ee5\u9a8c\u8bc1\u7f51\u7edc\u5df2\u505c\u6b62\u3002 \u5982\u4f55\u505c\u6b62 Docker \u7f51\u7edc\u8fde\u63a5 \u505c\u6b62 Docker \u7f51\u7edc\u8fde\u63a5\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a 1. \u786e\u5b9a\u8981\u505c\u6b62\u7684\u7f51\u7edc\u540d\u79f0 \u8981\u505c\u6b62\u7684\u7f51\u7edc\u7684\u540d\u79f0\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u786e\u5b9a\uff1a docker network ls \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u5c06\u663e\u793a\u6240\u6709\u6d3b\u52a8\u7684 Docker \u7f51\u7edc\u3002 2. \u4f7f\u7528 stop \u547d\u4ee4 \u8981\u505c\u6b62\u7279\u5b9a\u7684\u7f51\u7edc\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5176\u4e2d \u662f\u8981\u505c\u6b62\u7684\u7f51\u7edc\u7684\u540d\u79f0\uff1a docker network stop &lt;network name&gt; \u767b\u5f55\u540e\u590d\u5236 3. \u68c0\u67e5\u505c\u6b62\u72b6\u6001 \u8981\u9a8c\u8bc1\u7f51\u7edc\u662f\u5426\u5df2\u505c\u6b62\uff0c\u8bf7\u518d\u6b21\u8fd0\u884c network ls \u547d\u4ee4\u3002\u505c\u6b62\u7684\u7f51\u7edc\u5c06\u4e0d\u518d\u51fa\u73b0\u5728\u5217\u8868\u4e2d\u3002 \u793a\u4f8b \u5047\u8bbe\u6211\u4eec\u8981\u505c\u6b62\u540d\u4e3a &#8220;my-network&#8221; \u7684\u7f51\u7edc\uff1a \u786e\u5b9a\u7f51\u7edc\u540d\u79f0\uff1adocker network ls \u505c\u6b62\u7f51\u7edc\uff1adocker network stop my-network [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-18266","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18266","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=18266"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18266\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=18266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=18266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=18266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}