{"id":110404,"date":"2020-05-08T16:19:24","date_gmt":"2020-05-08T08:19:24","guid":{"rendered":"http:\/\/4563.org\/?p=110404"},"modified":"2020-05-08T16:19:24","modified_gmt":"2020-05-08T08:19:24","slug":"%e8%af%b7%e6%95%99%e4%b8%80%e4%b8%8b%e5%a4%a7%e5%ae%b6%ef%bc%8c-docker-%e7%9a%84%e7%8e%b0%e7%8a%b6%e6%80%8e%e4%b9%88%e6%a0%b7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=110404","title":{"rendered":"\u8bf7\u6559\u4e00\u4e0b\u5927\u5bb6\uff0c docker \u7684\u73b0\u72b6\u600e\u4e48\u6837?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u4e00\u4e0b\u5927\u5bb6\uff0c docker \u7684\u73b0\u72b6\u600e\u4e48\u6837?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : renmu <\/span>  <span><i><\/i> 64<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4eca\u5929\u770b\u5230\u4e00\u7bc7\u6587\u7ae0\u4e0a\u5199\u7740\u201cdocker \u5f0f\u5fae\u201d\uff0c\u6211\u5c31\u611f\u5230\u5c31\u975e\u5e38\u5947\u602a\uff0c\u56e0\u4e3a\u4e4b\u524d\u7ecf\u5e38\u4f1a\u770b\u5230\u5439 docker \u7684\u6587\u7ae0\u3002\uff08\u6211\u4e5f\u6ca1\u6709\u5f88\u5173\u6ce8\u8fd9\u4e00\u5757\uff09<\/p>\n<p>\u7b80\u5355\u641c\u7d22\u4e86\u4e00\u4e0b\u662f\u56e0\u4e3a k8s \u7684\u5d1b\u8d77\uff0c\u4f46 k8s \u53ea\u662f\u5bb9\u5668\u7f16\u6392\uff0c\u5e95\u5c42\u8fd8\u662f docker\uff0cdocker \u4e3a\u4ec0\u4e48\u4f1a\u9010\u6e10\u5f0f\u5fae?<\/p>\n<p>\u6587\u7ae0\u8fd8\u8bf4\u4e86 docker \u5728\u5f00\u6e90\u5c4a\u7684\u58f0\u8a89\u5f88\u5dee\uff0c\u6709\u4eba\u6765\u8bb2\u8bb2\u6545\u4e8b\u5417\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"615144\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wu67 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u83dc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615145\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : anguiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u58f0\u8a89\u5dee\u5927\u6982\u662f\u56e0\u4e3a\u4e4b\u524d\u90a3\u4e2a\u6539\u540d\u201cMoby\u201d\u7684\u4e8b\u60c5\uff0c\u5177\u4f53\u53ef\u4ee5\u81ea\u884c\u641c\u7d22\u4e00\u4e0b\u3002<br \/>\u5927\u90e8\u5206\u5531\u8870 Docker \u7684\u90fd\u662f\u5531\u8870 Docker \u516c\u53f8\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u516c\u53f8\u5546\u4e1a\u5316\u4e0d\u600e\u4e48\u6210\u529f\uff1f<br \/>\u5bb9\u5668\u6280\u672f\u672c\u8eab\u662f\u4e0d\u4f1a\u5f0f\u5fae\u7684\uff0c\u5927\u5bb6\u90fd\u5728\u7528\u5462\uff0c\u4e5f\u786e\u5b9e\u89e3\u51b3\u4e86\u5f88\u591a\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615146\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : HypoChen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bb9\u5668\u6280\u672f\u7684\u8bdd\u5e76\u6ca1\u6709\u5f0f\u5fae\uff0c\u53ea\u662f\u5927\u5bb6\u53d1\u73b0\u6700\u5927\u7684\u75db\u70b9\u5728\u7f16\u6392\u3002<br \/>\u65e0\u8bba\u662f Docker \u516c\u53f8\u8fd8\u662f Docker \u8fd9\u4e2a\u9879\u76ee\u672c\u8eab\uff0c\u5df2\u7ecf\u5b58\u5728\u611f\u5f88\u4f4e\u4e86\uff0c\u201c\u88ab\u6807\u51c6\u5316\u201d\u4e4b\u540e\uff0c\u53ef\u53d6\u4ee3\u6027\u5f88\u5f3a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615147\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : renmu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @HypoChen \u8bf4\u7684\u662f docker \u5f0f\u5fae\u7edd\u975e\u662f\u5bb9\u5668\uff0c\u5bb9\u5668\u7684\u5e02\u573a\u8fd8\u4f1a\u589e\u957f\u3002<\/p>\n<p>docker \u5e94\u8be5\u662f\u4e1a\u5185\u5bb9\u5668\u7684\u6807\u51c6\uff0c\u76ee\u524d&#8221;\u53ef\u53d6\u4ee3\u6027\u5f88\u5f3a&#8221;\u53ef\u80fd\u8fd8\u8c08\u4e0d\u4e0a\u5427                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615148\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : houzhimeng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u524d\u4e9b\u65e5\u5b50\u6709\u4e2a\u4eba \u4e00\u76f4\u5728\u5439 podman \u66ff\u4ee3 docker                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615149\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hdbzsgm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             docker \u4e0d\u662f\u5bb9\u5668 runtime \u7684\u552f\u4e00\u9009\u62e9 docker \u8d8a\u6765\u8d8a\u91cd \u5c31\u53ef\u4ee5\u9009\u522b\u7684\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615150\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : HypoChen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @renmu #4 docker \u73b0\u5728\u53ef\u4e0d\u662f\u4e1a\u5185\u6807\u51c6\uff0coci \u624d\u662f\uff0c\u800c\u4e14 k8s \u4e5f\u505a\u4e86\u975e\u5e38\u591a\u7684 \u201c\u53bb docker \u5316\u201d \u7684\u5de5\u4f5c\uff0c\u65e0\u8bba\u662f docker \u8fd8\u662f\u4e0a\u9762\u63d0\u5230\u7684 podman\uff0c\u4e0d\u8fc7\u90fd\u662f\u5bb9\u5668\u8fd0\u884c\u65f6\u4e4b\u4e00\uff0c\u53ea\u662f docker \u540d\u6c14\u6bd4\u8f83\u5927\u800c\u5df2\uff0c\u5728\u6807\u51c6\u5316\u4e0b\uff0c \u5927\u5bb6\u90fd\u662f runc \u7684\u58f3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615151\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : renmu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @HypoChen \u5b66\u4e60\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615152\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : feather12315 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             docker(\u73b0\u5728\u540d\u4e3a moby)\u6280\u672f\u5206\u4e09\u7c7b\uff1a\u955c\u50cf\u4ee5\u53ca\u4ed3\u5e93\u3001\u8fd0\u884c\u65f6\uff08 runc\uff0c\u539f\u540d libcontainerd \uff09\u3001docker engine \u5b88\u62a4\u8fdb\u7a0b\uff1b\u5bb9\u5668\u7f16\u6392\u6280\u672f\u662f swarm\u3002<\/p>\n<p>\u5176\u4e2d\uff0crunc \u8d21\u732e\u7ed9\u4e86\u4e91\u539f\u751f\u57fa\u91d1\u4f1a\uff1b\u955c\u50cf\u4ee5\u53ca\u4ed3\u5e93\u666e\u53ca\u5ea6\u5c31\u4e0d\u7528\u8bf4\u4e86\uff1b docker engine \u7528\u4e8e\u5355\u673a\uff0c\u4ef7\u503c\u4e0d\u5927\u3002<\/p>\n<p>\u6ca1\u6709\u7f16\u6392\u6280\u672f\u7684\u5bb9\u5668\uff0c\u662f\u4e2a\u73a9\u5177\u3002\u7136\u800c\uff0cswarm \u5728\u7f16\u6392\u7ade\u4e89\u4e2d\u843d\u8d25\uff0ck8s \u6210\u4e3a\u4e8b\u5b9e\u4e0a\u7684\u6807\u51c6\u3002<\/p>\n<p>\u8fd8\u6709\u4e2a OCI \u7ec4\u7ec7\uff0c\u65e8\u5728\u7edf\u4e00\u5bb9\u5668\u6807\u51c6\uff08\u5176\u5b9e\u53ef\u4ee5\u7406\u89e3\u4e3a\u72d9\u51fb docker \u7684\uff09\uff0c\u76ee\u524d\u5236\u5b9a\u4e86\u5bb9\u5668\u8fd0\u884c\u65f6\u89c4\u8303\uff08 runtime-spec \uff09\u4e0e\u955c\u50cf\u89c4\u8303\uff08 image-spec \uff09\u4e24\u4e2a\u3002\u6839\u636e\u8fd9\u4e2a\u6807\u51c6\uff0c\u5bb9\u5668\u8fd0\u884c\u65f6\u53d1\u5c55\u51fa\u4e86\u4e00\u7cfb\u5217 runtime\uff1arunc\uff0crkt \uff08 Container OS\uff0c\u539f\u540d CoreOS\uff0c\u4e0e docker \u5206\u9053\u626c\u9573\u540e\u81ea\u5df1\u505a\u4e86\u4e00\u4e2a\u7c7b\u4f3c runc \u7684\u8fd0\u884c\u65f6\uff09\uff0c\u8fd8\u6709 runv \uff08 kata container\uff0c\u57fa\u4e8e\u865a\u62df\u5316\u6280\u672f\u7684\u5b89\u5168\u5bb9\u5668\uff09\uff0crunsc \uff08 gVisor\uff0c\u53e6\u4e00\u7c7b\u5b89\u5168\u5bb9\u5668\uff09\uff0c\u7b49\u3002<\/p>\n<p>docker \u5f0f\u5fae\uff0c\u6307\u7684\u662f\uff0cdocker \u516c\u53f8\u5728\u7f16\u6392\u6280\u672f\u4e2d\u7ade\u4e89\u5931\u8d25\uff0c\u52a0\u4e4b\u5bb9\u5668\u88ab\u6807\u51c6\u5316\uff0c\u5b58\u5728\u611f\u4e0d\u5f3a\u4e86\uff0c\u66f4\u91cd\u8981\u7684\u662f\uff0c\u6ca1\u6709\u76c8\u5229\u624b\u6bb5\uff08\u6536\u5165\u5927\u5934 docker enterprise \u88ab\u6253\u5305\u5356\u7ed9\u4e86\u522b\u7684\u516c\u53f8\uff09\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615153\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuzhzzz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u201c\u5e95\u5c42\u8fd8\u662f docker\u201d\u8fd9\u8bdd\u9519\u4e86\u54c8\u54c8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615154\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : manami <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/podman.io                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"615155\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : optional <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f docker \u5f0f\u5fae\uff0c\u800c\u4e0d\u662f\u5bb9\u5668\u5316\u5f0f\u5fae\u3002 \u524d\u8005\u662f\u4e00\u6b3e\u4ea7\u54c1\uff0c\u540e\u8005\u662f\u4e00\u4e2a\u6807\u51c6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u4e00\u4e0b\u5927\u5bb6\uff0c docker \u7684\u73b0&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/110404"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=110404"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/110404\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=110404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=110404"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=110404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}