{"id":4176,"date":"2024-11-11T11:01:48","date_gmt":"2024-11-11T03:01:48","guid":{"rendered":"https:\/\/fwq.ai\/blog\/4176\/"},"modified":"2024-11-11T11:01:48","modified_gmt":"2024-11-11T03:01:48","slug":"docker-%e6%9c%af%e8%af%ad","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/4176\/","title":{"rendered":"Docker \u672f\u8bed"},"content":{"rendered":"<h1>Docker \u672f\u8bed<\/h1>\n<h4><\/h4>\n<p>Compose \u6587\u4ef6\u7684\u5f53\u524d\u540d\u79f0\uff0c\u56e0\u4e3a\u5b83\u662f\u4e00\u4e2a\u6587\u4ef6\uff0c\u683c\u5f0f\u4e3a\u4ee3\u7801\u3002<\/p>\n<h4><\/h4>\n<p>compose \u63d2\u4ef6\u4f5c\u4e3a\u53ef\u4ee5\u542f\u7528\/\u7981\u7528\u7684\u9644\u52a0\u7ec4\u4ef6\uff08\u9002\u7528\u4e8e Docker CLI\uff09\u3002<\/p>\n<h4><\/h4>\n<p>\u6bcf\u6b21\u63a8\u9001\u56fe\u50cf\u65f6\u81ea\u52a8\u521b\u5efa\u7684\u957f\u5b57\u7b26\u4e32\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u6458\u8981\u6216\u6807\u7b7e\u6765\u62c9\u53d6\u56fe\u50cf\u3002<\/p>\n<h4><\/h4>\n<p>\u5f53\u6211\u4eec\u8c08\u8bba\u5e94\u7528\u7a0b\u5e8f\u6216\u4e0e\u5e94\u7528\u7a0b\u5e8f\u76f8\u5173\u7684\u6240\u6709\u529f\u80fd\u65f6\u4f7f\u7528\u3002<\/p>\n<h4><\/h4>\n<p>\u4f7f\u7528\u4ee3\u7801\u683c\u5f0f\u6765\u5f15\u7528\u6587\u672c\u548c\u547d\u4ee4\u4f7f\u7528\u793a\u4f8b\/\u4ee3\u7801\u793a\u4f8b\u4e2d\u7684\u547d\u4ee4\u3002<\/p>\n<h4><\/h4>\n<p>\u5728\u5f15\u7528 Docker CLI \u63d0\u4f9b\u7684 Compose \u547d\u4ee4\u7cfb\u5217\u65f6\u4f7f\u7528\u3002<\/p>\n<h4><\/h4>\n<p>\u4e0d\u8981\u4f7f\u7528\u3002\u4ee3\u66ff\u4f7f\u7528<code>Kubernetes<\/code>\u3002<\/p>\n<h4><\/h4>\n<p>\uff08\u5e7f\u4e49\uff09Mac vs Linux vs Microsoft\uff0c\u8fd8\u6709\u4e00\u5bf9\u5e73\u53f0\u67b6\u6784\uff0c\u4f8b\u5982 Linux\/amd64 \u548c Linux\/arm64\uff1b \uff08\u72ed\u4e49\uff09Windows\/Linux\/macOS\u3002<\/p>\n<h4><\/h4>\n<p>\u5f53\u4e13\u95e8\u6307\u4ee3 CPU \u67b6\u6784\u6216\u57fa\u4e8e\u786c\u4ef6\u67b6\u6784\u7684\u4e8b\u7269\u65f6\u4f7f\u7528\u3002\u907f\u514d\u5c06\u5176\u7528\u4f5c\u4e0e\u591a\u5e73\u53f0\u76f8\u540c\u7684\u542b\u4e49\u3002<\/p>\n<h4><\/h4>\n<p>\u5c5e\u4e8e\u67d0\u4e2a\u7ec4\u7ec7\u7684 Docker Hub \u7528\u6237<\/p>\n<h4><\/h4>\n<p>\u7ec4\u7ec7\u6216\u7528\u6237\u540d\u3002\u6bcf\u4e2a\u56fe\u50cf\u90fd\u9700\u8981\u4e00\u4e2a\u547d\u540d\u7a7a\u95f4\u6765\u751f\u5b58\u3002<\/p>\n<h4><\/h4>\n<p>\u8282\u70b9\u662f\u5728\u96c6\u7fa4\u6a21\u5f0f\u4e0b\u8fd0\u884c Docker \u5f15\u64ce\u5b9e\u4f8b\u7684\u7269\u7406\u673a\u6216\u865a\u62df\u673a\u3002\u7ba1\u7406\u5668\u8282\u70b9\u6267\u884c\u7fa4\u4f53\u7ba1\u7406\u548c\u7f16\u6392\u804c\u8d23\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u7ba1\u7406\u8282\u70b9\u4e5f\u662f\u5de5\u4f5c\u8282\u70b9\u3002\u5de5\u4f5c\u8282\u70b9\u8c03\u7528\u4efb\u52a1\u3002<\/p>\n<h4><\/h4>\n<p>Docker \u955c\u50cf\u7684\u5728\u7ebf\u5b58\u50a8\u3002<\/p>\n<h4><\/h4>\n<p>\u5141\u8bb8\u7528\u6237\u4e0e\u5176\u56e2\u961f\u3001\u5ba2\u6237\u6216 Docker \u793e\u533a\u5171\u4eab\u5bb9\u5668\u6620\u50cf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker \u672f\u8bed Compose \u6587\u4ef6\u7684\u5f53\u524d\u540d\u79f0\uff0c\u56e0\u4e3a\u5b83\u662f\u4e00\u4e2a\u6587\u4ef6\uff0c\u683c\u5f0f\u4e3a\u4ee3\u7801\u3002 compose \u63d2\u4ef6\u4f5c\u4e3a\u53ef\u4ee5\u542f\u7528\/\u7981\u7528\u7684\u9644\u52a0\u7ec4\u4ef6\uff08\u9002\u7528\u4e8e Docker CLI\uff09\u3002 \u6bcf\u6b21\u63a8\u9001\u56fe\u50cf\u65f6\u81ea\u52a8\u521b\u5efa\u7684\u957f\u5b57\u7b26\u4e32\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u6458\u8981\u6216\u6807\u7b7e\u6765\u62c9\u53d6\u56fe\u50cf\u3002 \u5f53\u6211\u4eec\u8c08\u8bba\u5e94\u7528\u7a0b\u5e8f\u6216\u4e0e\u5e94\u7528\u7a0b\u5e8f\u76f8\u5173\u7684\u6240\u6709\u529f\u80fd\u65f6\u4f7f\u7528\u3002 \u4f7f\u7528\u4ee3\u7801\u683c\u5f0f\u6765\u5f15\u7528\u6587\u672c\u548c\u547d\u4ee4\u4f7f\u7528\u793a\u4f8b\/\u4ee3\u7801\u793a\u4f8b\u4e2d\u7684\u547d\u4ee4\u3002 \u5728\u5f15\u7528 Docker CLI \u63d0\u4f9b\u7684 Compose \u547d\u4ee4\u7cfb\u5217\u65f6\u4f7f\u7528\u3002 \u4e0d\u8981\u4f7f\u7528\u3002\u4ee3\u66ff\u4f7f\u7528Kubernetes\u3002 \uff08\u5e7f\u4e49\uff09Mac vs Linux vs Microsoft\uff0c\u8fd8\u6709\u4e00\u5bf9\u5e73\u53f0\u67b6\u6784\uff0c\u4f8b\u5982 Linux\/amd64 \u548c Linux\/arm64\uff1b \uff08\u72ed\u4e49\uff09Windows\/Linux\/macOS\u3002 \u5f53\u4e13\u95e8\u6307\u4ee3 CPU \u67b6\u6784\u6216\u57fa\u4e8e\u786c\u4ef6\u67b6\u6784\u7684\u4e8b\u7269\u65f6\u4f7f\u7528\u3002\u907f\u514d\u5c06\u5176\u7528\u4f5c\u4e0e\u591a\u5e73\u53f0\u76f8\u540c\u7684\u542b\u4e49\u3002 \u5c5e\u4e8e\u67d0\u4e2a\u7ec4\u7ec7\u7684 Docker Hub \u7528\u6237 \u7ec4\u7ec7\u6216\u7528\u6237\u540d\u3002\u6bcf\u4e2a\u56fe\u50cf\u90fd\u9700\u8981\u4e00\u4e2a\u547d\u540d\u7a7a\u95f4\u6765\u751f\u5b58\u3002 \u8282\u70b9\u662f\u5728\u96c6\u7fa4\u6a21\u5f0f\u4e0b\u8fd0\u884c Docker \u5f15\u64ce\u5b9e\u4f8b\u7684\u7269\u7406\u673a\u6216\u865a\u62df\u673a\u3002\u7ba1\u7406\u5668\u8282\u70b9\u6267\u884c\u7fa4\u4f53\u7ba1\u7406\u548c\u7f16\u6392\u804c\u8d23\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u7ba1\u7406\u8282\u70b9\u4e5f\u662f\u5de5\u4f5c\u8282\u70b9\u3002\u5de5\u4f5c\u8282\u70b9\u8c03\u7528\u4efb\u52a1\u3002 Docker \u955c\u50cf\u7684\u5728\u7ebf\u5b58\u50a8\u3002 \u5141\u8bb8\u7528\u6237\u4e0e\u5176\u56e2\u961f\u3001\u5ba2\u6237\u6216 Docker \u793e\u533a\u5171\u4eab\u5bb9\u5668\u6620\u50cf\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-4176","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/4176","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=4176"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/4176\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=4176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=4176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=4176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}