{"id":127898,"date":"2018-12-13T09:46:14","date_gmt":"2018-12-13T01:46:14","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=127898"},"modified":"2018-11-15T14:48:18","modified_gmt":"2018-11-15T06:48:18","slug":"prospect-of-container-operation","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/prospect-of-container-operation.html","title":{"rendered":"\u5bb9\u5668\u8fd0\u884c\u7684\u5c55\u671b"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5bb9\u5668\u6280\u672f\u865a\u62df\u5316\u6280\u672f\u5df2\u7ecf\u6210\u4e3a\u4e00\u79cd\u88ab\u5927\u5bb6\u5e7f\u6cdb\u8ba4\u53ef\u7684\u5bb9\u5668\u6280\u672f\u670d\u52a1\u5668\u8d44\u6e90\u5171\u4eab\u65b9\u5f0f\uff0c\u5bb9\u5668\u6280\u672f\u53ef\u4ee5\u5728\u6309\u9700\u6784\u5efa\u5bb9\u5668\u6280\u672f\u64cd\u4f5c\u7cfb\u7edf\u5b9e\u4f8b\u7684\u8fc7\u7a0b\u5f53\u4e2d\u4e3a\u7cfb\u7edf\u7ba1\u7406\u5458\u63d0\u4f9b\u6781\u5927\u7684\u7075\u6d3b\u6027\u3002\u7531\u4e8ehypervisor\u865a\u62df\u5316\u6280\u672f\u4ecd\u7136\u5b58\u5728\u4e00\u4e9b\u6027\u80fd\u548c\u8d44\u6e90\u4f7f\u7528\u6548\u7387\u65b9\u9762\u7684\u95ee\u9898\uff0c\u56e0\u6b64\u51fa\u73b0\u4e86\u4e00\u79cd\u79f0\u4e3a\u5bb9\u5668\u6280\u672f\uff08Container\uff09\u7684\u65b0\u578b\u865a\u62df\u5316\u6280\u672f\u6765\u5e2e\u52a9\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u672c\u6587\u5173\u952e\u70b9<\/strong><\/div>\n
\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\uff0c\u5bb9\u5668\u8fd0\u884c\u65f6\u7684\u9009\u62e9\u5df2\u7ecf\u4e0d\u4ec5\u4ec5\u662f Docker \u5f15\u64ce\u4e86\uff0c\u8fd8\u6709\u4e86\u5176\u4ed6\u7684\u9009\u9879\r\n\u5f00\u653e\u5bb9\u5668\u8ba1\u5212 (OCI) \u5df2\u6210\u529f\u6807\u51c6\u5316\u4e86\u5bb9\u5668\u548c\u5bb9\u5668\u955c\u50cf\u7684\u6982\u5ff5\uff0c\u4ee5\u4fdd\u8bc1\u8fd0\u884c\u65f6\u4e4b\u95f4\u7684\u4e92\u64cd\u4f5c\u6027\r\nKubernetes \u589e\u52a0\u4e86\u4e00\u4e2a\u5bb9\u5668\u8fd0\u884c\u65f6\u754c\u9762 (CRI)\uff0c\u5141\u8bb8\u5bb9\u5668\u8fd0\u884c\u65f6\u53ef\u63d2\u5165\u4e0b\u9762\u7684 Kubernetes \u7f16\u6392\u5c42\r\n\u4e3a\u4e86\u65e5\u76ca\u589e\u957f\u7684\u5b89\u5168\u6027\u9700\u6c42\uff0c\u5728\u8fd9\u4e2a\u9886\u57df\u7684\u521b\u65b0\u5141\u8bb8\u5bb9\u5668\u4f7f\u7528\u8f7b\u91cf\u7ea7\u865a\u62df\u5316\u548c\u5176\u4ed6\u72ec\u7279\u7684\u9694\u79bb\u6280\u672f\r\n\u5728 OCI \u548c CRI \u4e4b\u95f4\uff0c\u4e92\u64cd\u4f5c\u6027\u548c\u9009\u62e9\u6b63\u5728\u6210\u4e3a\u5bb9\u5668\u8fd0\u884c\u65f6\u548c\u7f16\u5236\u751f\u6001\u7cfb\u7edf\u7684\u73b0\u5b9e\r\n<\/pre>\n

\u5728 Linux \u64cd\u4f5c\u7cfb\u7edf\u7684\u4e16\u754c\u4e2d\uff0c\u5bb9\u5668\u6280\u672f\u5df2\u7ecf\u5b58\u5728\u4e86\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\uff0c\u53ef\u4ee5\u8ffd\u6eaf\u5230\u5341\u591a\u5e74\u524d\u5173\u4e8e\u6587\u4ef6\u7cfb\u7edf\u548c\u8fdb\u7a0b\u7684\u72ec\u7acb\u547d\u540d\u7a7a\u95f4\u7684\u6700\u521d\u60f3\u6cd5\u3002\u5728\u6700\u8fd1\u7684\u67d0\u4e2a\u65f6\u95f4\u70b9\uff0cLXC \u8bde\u751f\u4e86\uff0c\u5e76\u6210\u4e3a Linux \u7528\u6237\u8bbf\u95ee\u9690\u85cf\u5728 Linux \u5185\u6838\u4e2d\u7684\u5f3a\u5927\u9694\u79bb\u6280\u672f\u7684\u5e38\u89c1\u65b9\u5f0f\u3002<\/p>\n

\u5373\u4f7f LXC \u5c4f\u853d\u4e00\u4e9b\u7ec4\u88c5\u7684\u5404\u79cd\u6280\u672f\u57fa\u7840\u7684\u590d\u6742\u6027\uff0c\u6211\u4eec\u73b0\u5728\u901a\u5e38\u5c06\u6b64\u79f0\u4e4b\u4e3a\u4e00\u4e2a\u201c\u5bb9\u5668\u201d\uff0c\u4f46\u5bb9\u5668\u4ecd\u7136\u50cf\u9b54\u6cd5\u4e00\u822c\uff0c\u5e76\u6ca1\u6709\u88ab\u5927\u4f17\u5e7f\u6cdb\u4f7f\u7528\uff0c\u9664\u4e86\u90a3\u4e9b\u7cbe\u901a\u5bb9\u5668\u827a\u672f\u7684\u4eba\u3002<\/p>\n

Docker \u7684\u5230\u6765\u6539\u53d8\u4e86\u6240\u6709\u8fd9\u4e00\u5207\uff0c\u5728 2014 \u5e74\u65b0\u7684 Linux \u5185\u6838\u5f00\u53d1\u4eba\u5458\u4ee5 LXC \u4e3a\u5e95\u5c42\u66f4\u597d\u5730\u5305\u88c5\u4e86\u76f8\u540c\u7684\u6280\u672f\uff0c\u4e8b\u5b9e\u4e0a, \u65e9\u671f\u7248\u672c\u7684 Docker \u80cc\u540e\u4ecd\u5728\u4f7f\u7528 LXC \uff0c\u5bb9\u5668\u771f\u6b63\u8d70\u5411\u5927\u4f17\u662f\u56e0\u4e3a\u5f00\u53d1\u4eba\u5458\u88ab Docker \u5bb9\u5668\u955c\u50cf\u7684\u7b80\u5355\u6027\u548c\u91cd\u7528\u6027\u4ee5\u53ca\u7b80\u5355\u7684\u8fd0\u884c\u65f6\u547d\u4ee4\u5438\u5f15\u4e86\u3002<\/p>\n

\u5f53\u7136\uff0cDocker \u5e76\u4e0d\u662f\u552f\u4e00\u4e00\u4e2a\u60f3\u8981\u5b9e\u73b0\u5bb9\u5668\u5e02\u573a\u4efd\u989d\u7684\u516c\u53f8\uff0c\u56e0\u4e3a\u5728 2014 \u5e74\u6700\u521d\u7684\u5174\u8da3\u7206\u53d1\u4e4b\u540e\uff0c\u7092\u4f5c\u5468\u671f\u5e76\u6ca1\u6709\u663e\u793a\u51fa\u653e\u7f13\u7684\u8ff9\u8c61\u3002\u5728\u8fc7\u53bb\u7684\u51e0\u5e74\u4e2d\uff0cCoreOS (rkt),Intel Clear Containers \u548chyper.sh (\u4e0e\u5bb9\u5668\u76f8\u7ed3\u5408\u7684\u8f7b\u91cf\u7ea7\u865a\u62df\u5316) \u7b49\u516c\u53f8\u63d0\u51fa\u4e86\u5404\u79cd\u4e0d\u540c\u7684\u5bb9\u5668\u8fd0\u884c\u65f6\u65b9\u6848\uff0c\u5728\u9ad8\u6027\u80fd\u8ba1\u7b97 (HPC) \u79d1\u5b66\u7814\u7a76\u9886\u57df\u51fa\u73b0\u4e86 Singularity \u4ee5\u53cashifter\u6280\u672f\u3002<\/p>\n

\u968f\u7740\u5e02\u573a\u7684\u6301\u7eed\u589e\u957f\u548c\u6210\u719f\uff0cDocker \u901a\u8fc7\u5f00\u653e\u5bb9\u5668\u8ba1\u5212 (OCI) \u63a8\u5e7f\u7684\u6700\u521d\u60f3\u6cd5\u5f00\u59cb\u6807\u51c6\u5316\u3002\u5982\u4eca\uff0c\u8bb8\u591a\u5bb9\u5668\u8fd0\u884c\u65f6\u8981\u4e48\u662f OCI \u517c\u5bb9\u7684\uff0c\u8981\u4e48\u6b63\u5728\u8981 OCI \u517c\u5bb9\u7684\uff0c\u8fd9\u4e3a\u4f9b\u5e94\u5546\u63d0\u4f9b\u4e86\u4e00\u4e2a\u516c\u5e73\u7684\u7ade\u4e89\u73af\u5883\uff0c\u4ee5\u533a\u5206\u5b83\u4eec\u7684\u7279\u6027\u6216\u4e13\u95e8\u5173\u6ce8\u7684\u529f\u80fd\u3002<\/p>\n

Kubernetes \u5927\u53d7\u6b22\u8fce<\/strong><\/div>\n

\u5bb9\u5668\u8fdb\u5316\u7684\u4e0b\u4e00\u6b65\u662f\u5c06\u5206\u5e03\u5f0f\u8ba1\u7b97\u3001\u5fae\u670d\u52a1\u548c\u5bb9\u5668\u4e00\u8d77\u5f15\u5165\u8fd9\u4e2a\u5feb\u901f\u5f00\u53d1\u548c\u90e8\u7f72\u8fed\u4ee3\u7684\u65b0\u4e16\u754c\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u79f0\u5176\u4e3a DevOps \u5427\uff0c\u5b83\u5c06\u968f\u7740 Docker \u7684\u65e5\u76ca\u6d41\u884c\u800c\u8fc5\u901f\u5174\u8d77\u3002<\/p>\n

Apache Mesos\u548c\u5176\u4ed6\u5206\u5e03\u5f0f\u8f6f\u4ef6\u7f16\u914d\u5e73\u53f0\u5728\u5176\u5360\u636e\u4f18\u52bf\u5730\u4f4d\u4e4b\u524d\u5c31\u5df2\u7ecf\u5b58\u5728\uff0c\u800c Kubernetes\u4e5f\u4ece\u8c37\u6b4c\u7684\u4e00\u4e2a\u5c0f\u578b\u5f00\u6e90\u9879\u76ee\u5feb\u901f\u5d1b\u8d77\uff0c\u6210\u4e3a\u4e91\u539f\u751f\u8ba1\u7b97\u57fa\u91d1\u4f1a (CNCF) \u7684\u65d7\u8230\u9879\u76ee\u3002\u5373\u4f7f\u5728 Docker \u53d1\u5e03\u4e86\u4e00\u4e2a\u7ade\u4e89\u7684\u7f16\u914d\u5e73\u53f0 Swarm\u4e4b\u540e\uff0cDocker \u672c\u8eab\u5c31\u5185\u7f6e\u4e86 Docker \u7684\u7b80\u5355\u98ce\u683c\uff0c\u5e76\u5173\u6ce8\u4e8e\u9ed8\u8ba4\u5b89\u5168\u96c6\u7fa4\u914d\u7f6e\uff0c\u4f46\u5b83\u4f3c\u4e4e\u8fd8\u4e0d\u8db3\u4ee5\u963b\u6b62\u4eba\u4eec\u5bf9 Kubernetes \u65e5\u76ca\u589e\u957f\u7684\u5174\u8da3\u3002<\/p>\n

\u5728\u4e91\u539f\u751f\u793e\u533a\u4e4b\u5916\uff0c\u8bb8\u591a\u611f\u5174\u8da3\u7684\u4eba\u8fd8\u662f\u4f1a\u628a\u5b83\u641e\u6df7\uff0c\u5ffd\u7136\u95f4\u5206\u4e0d\u6e05 Kubernetes \u548c Docker \u662f\u7ade\u4e89\u5173\u7cfb\uff0c\u8fd8\u662f\u5408\u4f5c\u5173\u7cfb\u3002\u7531\u4e8e Kubernetes \u53ea\u662f\u4e00\u4e2a\u7f16\u6392\u5e73\u53f0\uff0c\u56e0\u6b64\u9700\u8981\u4e00\u4e2a\u5bb9\u5668\u8fd0\u884c\u65f6\u6765\u7ba1\u7406\u901a\u8fc7 Kubernetes \u7f16\u6392\u7684\u5b9e\u9645\u8fd0\u884c\u7684\u5bb9\u5668\u3002\u4ece\u7b2c\u4e00\u5929\u8d77\uff0cKubernetes \u5c31\u4e00\u76f4\u5728\u4f7f\u7528 Docker \u5f15\u64ce\uff0c\u5373\u4f7f Swarm \u548c Kubernetes \u662f\u5173\u7cfb\u7d27\u5f20\u7684\u7f16\u914d\u7ade\u4e89\u5bf9\u624b\uff0cDocker \u4ecd\u7136\u662f\u4e00\u4e2a\u53ef\u8fd0\u7ef4\u7684 Kubernetes \u96c6\u7fa4\u6240\u9700\u7684\u9ed8\u8ba4\u8fd0\u884c\u65f6\u3002<\/p>\n

\u9664\u4e86 Docker \u4e4b\u5916\uff0c\u8fd8\u6709\u51e0\u4e2a\u5bb9\u5668\u8fd0\u884c\u65f6\u53ef\u4f9b\u9009\u62e9\uff0c\u4f46\u5f88\u660e\u663e\uff0c\u82e5\u67d0\u4e2a\u5bb9\u5668\u8fd0\u884c\u65f6\u60f3\u4e0e Kubernetes \u4ea4\u4e92\uff0c\u5219\u9700\u8981\u4e3a\u5176\u4e13\u95e8\u7f16\u5199\u4e00\u4e2a\u63a5\u53e3 (\u6216 shim)\uff0c\u6bcf\u4e2a\u5bb9\u5668\u8fd0\u884c\u65f6\u90fd\u5f97\u4e13\u95e8\u7f16\u5199\u3002\u7531\u4e8e\u7f3a\u4e4f\u660e\u786e\u63a5\u53e3\u7528\u4e8e\u5bb9\u5668\u8fd0\u884c\u65f6\u7684\u5b9e\u73b0\uff0c\u5411 Kubernetes \u6dfb\u52a0\u66f4\u591a\u7684\u8fd0\u884c\u65f6\u9009\u9879\u53d8\u5f97\u5f88\u9ebb\u70e6\u3002<\/p>\n

\u5bb9\u5668\u8fd0\u884c\u65f6\u63a5\u53e3 (CRI)<\/strong><\/div>\n

\u5c06\u8fd0\u884c\u65f6\u9009\u62e9\u5408\u5165\u5230 Kubernetes \u4e2d\u7684\u9700\u6c42\u65e5\u76ca\u589e\u957f\uff0c\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u6311\u6218\uff0c\u793e\u533a\u5b9a\u4e49\u4e86\u4e00\u4e2a\u63a5\u53e3\uff0c\u5b83\u662f\u4e00\u4e2a\u7279\u5b9a\u7684\u51fd\u6570\uff0c\u5bb9\u5668\u8fd0\u884c\u65f6\u5fc5\u987b\u4ee3\u8868 kubernet \u5b9e\u73b0\u5b83\uff0c\u79f0\u4e3a\u5bb9\u5668\u8fd0\u884c\u65f6\u63a5\u53e3 (CRI)\u3002\u8fd9\u65e2\u89e3\u51b3\u4e86\u53d8\u66f4\u5bb9\u5668\u8fd0\u884c\u65f6\u5fc5\u987b\u5f97\u66f4\u6539\u5927\u91cf\u4f4d\u7f6e\u7684\u95ee\u9898\uff0c\u53c8\u660e\u786e\u4e86\u6f5c\u5728\u7684\u8fd0\u884c\u65f6\u8981\u6210\u4e3a CRI \u8fd0\u884c\u65f6\u5fc5\u987b\u652f\u6301\u54ea\u4e9b\u529f\u80fd\u3002<\/p>\n

\u6b63\u5982\u60a8\u53ef\u80fd\u9884\u671f\u7684\u90a3\u6837\uff0cCRI \u5bf9\u8fd0\u884c\u65f6\u7684\u671f\u671b\u76f8\u5f53\u7b80\u5355\u3002\u8fd0\u884c\u65f6\u5fc5\u987b\u80fd\u591f\u542f\u52a8 \/ \u505c\u6b62 pod\uff0c\u5e76\u5904\u7406 pod \u4e2d\u7684\u6240\u6709\u5bb9\u5668\u64cd\u4f5c (\u542f\u52a8\u3001\u505c\u6b62\u3001\u6682\u505c\u3001\u7ec8\u6b62\u3001\u5220\u9664)\uff0c\u4ee5\u53ca\u4f7f\u7528\u5bb9\u5668\u6ce8\u518c\u8868\u5904\u7406\u955c\u50cf\u7ba1\u7406\u3002\u8fd8\u8981\u6709\u4e00\u4e9b\u6536\u96c6\u65e5\u5fd7\u3001\u5ea6\u91cf\u6536\u96c6\u7b49\u76f8\u5173\u7684\u5b9e\u7528\u7a0b\u5e8f\u548c\u8f85\u52a9\u529f\u80fd\uff0c\u5c31\u50cf\u60a8\u6240\u671f\u671b\u7684\u90a3\u6837\u3002<\/p>\n

\u5f53\u65b0\u7279\u6027\u8fdb\u5165 Kubernetes \u65f6\uff0c\u5982\u679c\u5b83\u4eec\u4f9d\u8d56\u4e8e\u5bb9\u5668\u8fd0\u884c\u65f6\u5c42\uff0c\u90a3\u4e48\u5c31\u8981\u66f4\u6539\u7248\u672c\u63a7\u5236\u7684 CRI API, \u65b0\u7279\u6027\u548c\u65b0\u7248\u672c\u7684\u8fd0\u884c\u65f6\u652f\u6301 (\u6bd4\u5982\u6700\u8fd1\u7684\u4e00\u4e2a\u4f8b\u5b50\u5c31\u662f\u7528\u6237\u547d\u540d\u7a7a\u95f4) \u5fc5\u987b\u53d1\u5e03\u4ee5\u5904\u7406\u6765\u81ea Kubernetes \u7684\u65b0\u529f\u80fd\u4f9d\u8d56\u3002<\/p>\n

\u5f53\u524d CRI \u683c\u5c40<\/strong><\/div>\n

\u622a\u81f3 2018 \u5e74\uff0cKubernetes \u4e0b\u9762\u7684\u5bb9\u5668\u8fd0\u884c\u65f6\u6709\u51e0\u4e2a\u9009\u9879\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0cDocker \u4ecd\u7136\u662f Kubernetes \u4e00\u4e2a\u6709\u6548\u9009\u62e9\uff0c\u5b83\u7684shim\u73b0\u5728\u5b9e\u73b0\u4e86 CRI API\u3002\u4e8b\u5b9e\u4e0a\uff0c\u4eca\u5929\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0cDocker \u4ecd\u7136\u662f Kubernetes \u5b89\u88c5\u7684\u9ed8\u8ba4\u8fd0\u884c\u65f6\u3002<\/p>\n

\"\"<\/p>\n

Docker \u4f7f\u7528 Swarm \u7684\u7f16\u6392\u7b56\u7565\u548c Kubernetes \u793e\u533a\u7684\u7d27\u5f20\u7ade\u4e89\u5173\u7cfb\u4ea7\u751f\u4e86\u4e00\u4e2a\u6709\u8da3\u7684\u7ed3\u679c\uff0c\u90a3\u5c31\u662f\u5f62\u6210\u4e86\u4e00\u4e2a\u8054\u5408\u9879\u76ee\uff0c\u5b83\u4ee5 Docker \u7684\u8fd0\u884c\u65f6\u4e3a\u6838\u5fc3\uff0c\u5e76\u5c06\u5176\u4f5c\u4e3a\u4e00\u4e2a\u65b0\u7684\u8054\u5408\u5f00\u53d1\u7684\u5f00\u6e90\u9879\u76ee\uff0c\u547d\u540d\u4e3a containerd\u3002\u7136\u540e\uff0cContainerd \u8fd8\u5411 CNCF \u6350\u4e86\u6b3e\uff0cCNCF \u662f\u7ba1\u7406\u548c\u62e5\u6709 Kubernetes \u9879\u76ee\u7684\u540c\u4e00\u5bb6\u57fa\u91d1\u4f1a\u3002<\/p>\n

\u901a\u8fc7\u5c06 containerd \u4f5c\u4e3a\u6838\u5fc3\uff0cDocker \u548c Kubernetes \u90fd\u4e0d\u518d\u56fa\u6b65\u4e8e\u81ea\u5df1\u7684\u7eaf\u8fd0\u884c\u65f6\u4e86\uff0c\u5b83\u4f5c\u4e3a Docker \u7684\u6f5c\u5728\u66ff\u4ee3\u54c1\uff0c\u5df2\u7ecf\u5728\u8bb8\u591a Kubernetes \u5b89\u88c5\u4e2d\u6d41\u884c\u8d77\u6765\u3002\u4eca\u5929\uff0cIBM Cloud \u548c\u8c37\u6b4c\u4e91\u90fd\u4ee5 beta\/ \u65e9\u671f\u8bbf\u95ee\u6a21\u5f0f\u63d0\u4f9b\u4e86\u57fa\u4e8e containerd \u7684\u96c6\u7fa4\u3002\u5fae\u8f6f Azure \u4e5f\u627f\u8bfa\u5728\u672a\u6765\u8f6c\u5411 containerd\uff0c\u4e9a\u9a6c\u900a\u8fd8\u5728\u8bc4\u4f30 ECS \u548c EKS \u5bb9\u5668\u4ea7\u54c1\u4e0b\u7684\u8fd0\u884c\u65f6\u9009\u62e9\u9009\u9879\uff0c\u6682\u65f6\u8fd8\u5728\u7ee7\u7eed\u4f7f\u7528 Docker\u3002<\/p>\n

Red Hat \u8fd8\u901a\u8fc7\u5728 OCI \u53c2\u8003\u5b9e\u73b0 runc \u5468\u56f4\u521b\u5efa\u4e00\u4e2a\u540d\u4e3acri-o\u7684\u7eaf CRI \u5b9e\u73b0\uff0c\u4ece\u800c\u8fdb\u5165\u4e86\u5bb9\u5668\u8fd0\u884c\u65f6\u9886\u57df\u3002Docker \u548c containerd \u4e5f\u57fa\u4e8e runc\u5b9e\u73b0\uff0c\u4f46\u662f crio \u8868\u793a\uff0c\u5bf9\u4e8e Kubernetes \u6765\u8bf4\uff0c\u5b83\u7684\u8fd0\u884c\u65f6\u201c\u521a\u521a\u597d\u201d\uff0c\u4e0d\u9700\u8981\u66f4\u591a\uff0c\u53ea\u5728\u57fa\u672c\u7684 runc \u4e8c\u8fdb\u5236\u6587\u4ef6\u4e4b\u4e0a\u6dfb\u52a0\u4e86\u5b9e\u73b0 Kubernetes CRI \u6240\u5fc5\u9700\u7684\u51fd\u6570\u3002<\/p>\n

\u8f7b\u91cf\u7ea7\u865a\u62df\u5316\u9879\u76ee Intel Clear container \u548c hyper.sh\uff0c\u5408\u5e76\u4e86 OpenStack Foundation \u9879\u76ee\u4e0b\u7684Kata \u5bb9\u5668\uff0c\u4e5f\u9488\u5bf9\u989d\u5916\u7684\u9694\u79bb\u901a\u8fc7 CRI \u5b9e\u73b0 frakti\u63d0\u4f9b\u4e86\u4ed6\u4eec\u7684\u865a\u62df\u5316\u5bb9\u5668\u98ce\u683c\u3002cri-o \u548c containerd \u4e5f\u652f\u6301 Kata \u5bb9\u5668\uff0c\u8fd9\u6837\u5b83\u4eec\u7b26\u5408 oci \u7684\u8fd0\u884c\u65f6\u4e5f\u53ef\u4ee5\u4f5c\u4e3a CRI \u5b9e\u73b0\u4e2d\u7684\u53ef\u63d2\u5165\u8fd0\u884c\u65f6\u9009\u9879\u3002<\/p>\n

\u672a\u6765\u9884\u6d4b<\/strong><\/div>\n

\u867d\u7136\u58f0\u79f0\u4e86\u89e3\u672a\u6765\u57fa\u672c\u4e0d\u662f\u4e2a\u660e\u667a\u7684\u505a\u6cd5\uff0c\u4f46\u6211\u4eec\u81f3\u5c11\u53ef\u4ee5\u63a8\u65ad\u51fa\u4e00\u4e9b\u8d8b\u52bf\uff0c\u8fd9\u4e9b\u8d8b\u52bf\u662f\u968f\u7740\u5bb9\u5668\u751f\u6001\u7cfb\u7edf\u4ece\u5927\u91cf\u7684\u5174\u594b\u548c\u7092\u4f5c\u53d1\u5c55\u5230\u66f4\u6210\u719f\u7684\u5b58\u5728\u9636\u6bb5\u800c\u51fa\u73b0\u7684\u3002<\/p>\n

\u65e9\u671f\u6709\u4eba\u62c5\u5fc3\uff0c\u5bb9\u5668\u751f\u6001\u7cfb\u7edf\u7684\u4e89\u7aef\u4f1a\u9020\u6210\u4e00\u4e2a\u652f\u79bb\u7834\u788e\u7684\u73af\u5883\uff0c\u5728\u8fd9\u4e2a\u73af\u5883\u4e2d\uff0c\u5404\u65b9\u6700\u7ec8\u4f1a\u5bf9\u5bb9\u5668\u7684\u6982\u5ff5\u4ea7\u751f\u4e0d\u540c\u7684\u3001\u4e92\u4e0d\u76f8\u5bb9\u7684\u60f3\u6cd5\u3002\u611f\u8c22\u4e3b\u8981\u4f9b\u5e94\u5546\u548c\u53c2\u4e0e\u8005\u4e3a OCI \u505a\u51fa\u7684\u5de5\u4f5c\u52aa\u529b\u548c\u627f\u8bfa\uff0c\u6211\u4eec\u770b\u5230\u6574\u4e2a\u884c\u4e1a\u5728\u8f6f\u4ef6\u4ea7\u54c1\u4f18\u5148\u4fdd\u8bc1 OCI \u5408\u89c4\u65b9\u9762\u8fdb\u884c\u4e86\u5065\u5eb7\u7684\u6295\u8d44\u3002<\/p>\n

\u5728\u65b0\u7684\u7a7a\u95f4\u4e2d\uff0c\u7531\u4e8e\u72ec\u7279\u7684\u7ea6\u675f (\u4f8b\u5982 HPC)\uff0c Docker \u7684\u6807\u51c6\u4f7f\u7528\u5f97\u5230\u7684\u5173\u6ce8\u8f83\u5c11\uff0c\u5373\u4f7f\u662f\u5728\u53ef\u884c\u7684\u5bb9\u5668\u8fd0\u884c\u65f6\u4e0a\u975e\u57fa\u4e8e Docker \u7684\u5c1d\u8bd5\u73b0\u5728\u4e5f\u5f00\u59cb\u5173\u6ce8 OCI\u3002\u76ee\u524d\u6b63\u5728\u8fdb\u884c\u8ba8\u8bba\uff0c\u5e0c\u671b OCI \u4e5f\u80fd\u7b26\u5408\u79d1\u5b66\u754c\u548c\u7814\u7a76\u793e\u533a\u7684\u5177\u4f53\u9700\u8981\u3002<\/p>\n

\u589e\u52a0\u4e86\u901a\u8fc7 CRI \u5728 Kubernetes \u4e2d\u53ef\u63d2\u5165\u5bb9\u5668\u8fd0\u884c\u65f6\u7684\u6807\u51c6\u5316\uff0c\u6211\u4eec\u53ef\u4ee5\u8bbe\u60f3\u8fd9\u6837\u4e00\u4e2a\u4e16\u754c\uff1a\u5f00\u53d1\u4eba\u5458\u548c\u8fd0\u7ef4\u4eba\u5458\u53ef\u4ee5\u9488\u5bf9\u4ed6\u4eec\u7684\u5de5\u4f5c\u9009\u62e9\u5de5\u5177\u548c\u8f6f\u4ef6\u6808\uff0c\u5e76\u4e14\u4ecd\u7136\u671f\u671b\u5e76\u4f53\u9a8c\u8de8\u5bb9\u5668\u751f\u6001\u7cfb\u7edf\u7684\u4e92\u64cd\u4f5c\u6027\u3002<\/p>\n

\u4e3a\u4e86\u5e2e\u52a9\u60a8\u66f4\u6e05\u695a\u5730\u4e86\u89e3\u8fd9\u4e00\u70b9\uff0c\u8ba9\u6211\u4eec\u4ee5\u4e0b\u9762\u7684\u5177\u4f53\u793a\u4f8b\u4e3a\u4f8b\uff1a<\/p>\n

MacBook \u4e0a\u7684\u5f00\u53d1\u4eba\u5458\u4f7f\u7528 Docker \u6765\u5f00\u53d1\u5979\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u751a\u81f3\u4f7f\u7528\u5185\u7f6e\u7684 Kubernetes \u652f\u6301 (\u4f7f\u7528 Docker \u4f5c\u4e3a CRI \u8fd0\u884c\u65f6) \u6765\u5c1d\u8bd5\u5728 Kubernetes pods \u4e2d\u90e8\u7f72\u5979\u7684\u65b0\u5e94\u7528\u7a0b\u5e8f\u3002\r\n\u5e94\u7528\u7a0b\u5e8f\u5728\u4f9b\u5e94\u5546\u4ea7\u54c1\u4e0a\u901a\u8fc7 CI\/CD \u4f7f\u7528 runc \u548c\u4e00\u4e9b\u4f9b\u5e94\u5546\u7f16\u5199\u7684\u4ee3\u7801\u6765\u6253\u5305 OCI \u6620\u50cf\u5e76\u5c06\u5176\u63a8\u5230\u4f01\u4e1a\u5bb9\u5668\u6ce8\u518c\u4e2d\u5fc3\u8fdb\u884c\u6d4b\u8bd5\u3002\r\n\u5728\u5185\u90e8\u90e8\u7f72\u7684 Kubernetes \u96c6\u7fa4\u4e2d\uff0c\u4f7f\u7528 containerd \u4f5c\u4e3a CRI \u8fd0\u884c\u65f6\u5bf9\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u4e00\u7ec4\u6d4b\u8bd5\u3002\r\n\u8fd9\u4e2a\u7279\u5b9a\u7684\u4f01\u4e1a\u9009\u62e9\u4f7f\u7528 Kata \u5bb9\u5668\u6765\u5904\u7406\u751f\u4ea7\u4e2d\u7684\u67d0\u4e9b\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u5f53\u5e94\u7528\u7a0b\u5e8f\u88ab\u90e8\u7f72\u65f6\uff0c\u5b83\u8fd0\u884c\u5728\u4e0e containerd \u4e00\u8d77\u8fd0\u884c\u7684 pod \u4e2d\uff0c\u5b83\u88ab\u914d\u7f6e\u4e3a\u4f7f\u7528 Kata \u5bb9\u5668\u4f5c\u4e3a\u57fa\u672c\u8fd0\u884c\u65f6\uff0c\u800c\u4e0d\u662f runc\u3002\r\n<\/pre>\n

\u6574\u4e2a\u793a\u4f8b\u573a\u666f\u5de5\u4f5c\u5f97\u5b8c\u7f8e\u65e0\u7f3a\uff0c\u56e0\u4e3a\u5b83\u7b26\u5408 OCI \u5bf9\u8fd0\u884c\u65f6\u548c\u955c\u50cf\u7684\u89c4\u8303\uff0c\u800c\u4e14 CRI \u5141\u8bb8\u8fd0\u884c\u65f6\u9009\u62e9\u8fd9\u79cd\u7075\u6d3b\u6027\u3002<\/p>\n

\u5bb9\u5668\u751f\u6001\u7cfb\u7edf\u7684\u7075\u6d3b\u6027\u548c\u9009\u62e9\u673a\u4f1a\u5bf9\u6211\u4eec\u6765\u8bf4\u5f88\u6709\u597d\u5904\uff0c\u8fd9\u4e2a\u884c\u4e1a\u81ea 2014 \u5e74\u4ee5\u6765\u51e0\u4e4e\u4e00\u591c\u4e4b\u95f4\u5d1b\u8d77\uff0c\u8fd9\u5bf9\u4e8e\u8fd9\u4e2a\u884c\u4e1a\u7684\u6210\u719f\u975e\u5e38\u91cd\u8981\u3002\u968f\u7740\u6211\u4eec\u8fdb\u5165 2019 \u5e74\u6216\u8005\u66f4\u8fdc\u7684\u5c06\u6765\uff0c\u5bf9\u4e8e\u90a3\u4e9b\u4f7f\u7528\u548c\u521b\u5efa\u57fa\u4e8e\u5bb9\u5668\u7684\u5e73\u53f0\u7684\u4eba\u6765\u8bf4\uff0c\u6301\u7eed\u521b\u65b0\u548c\u7075\u6d3b\u6027\u7684\u672a\u6765\u662f\u5149\u660e\u7684\uff01<\/p>\n

\u66f4\u591a\u7684\u4fe1\u606f\u53ef\u4ee5\u4ece Phil Estes \u6700\u8fd1\u7684 QCon NY \u8c08\u8bdd\u4e2d\u627e\u5230\uff1a\u201cCRI \u8fd0\u884c\u65f6\u6df1\u5ea6\u8ba8\u8bba\uff1a\u8c01\u5728\u8fd0\u884c\u6211\u7684 Kubernetes Pod!\u201d<\/p>\n

\u5173\u4e8e\u4f5c\u8005<\/strong><\/div>\n

\"\"<\/p>\n

Phil Estes \u662f IBM Watson \u548c\u4e91\u5e73\u53f0\u90e8\u95e8\u7684\u6770\u51fa\u5de5\u7a0b\u5e08\u517c CTO\uff0c\u8d1f\u8d23\u5bb9\u5668\u548c Linux OS \u67b6\u6784\u7b56\u7565\u3002Phil \u76ee\u524d\u662f Docker(\u73b0\u5728\u662f Moby) \u5f15\u64ce\u9879\u76ee CNCF containerd \u7684 OSS \u7ef4\u62a4\u8005\uff0c\u4e5f\u662f\u5f00\u653e\u5bb9\u5668\u8ba1\u5212
\n(OCI) \u6280\u672f\u76d1\u7763\u59d4\u5458\u4f1a\u548c Moby \u6280\u672f\u6307\u5bfc\u59d4\u5458\u4f1a\u7684\u6210\u5458\u3002Phil \u662f Docker captain \u9879\u76ee\u7684\u6210\u5458\uff0c\u5728\u5f00\u6e90\u548c\u5bb9\u5668\u751f\u6001\u7cfb\u7edf\u65b9\u9762\u6709\u7740\u5e7f\u6cdb\u7684\u7ecf\u9a8c\u3002Phil \u5728\u4e1a\u754c\u548c\u5f00\u53d1\u8005\u5927\u4f1a\u4ee5\u53ca\u89c1\u9762\u4f1a\u4e0a\u53d1\u8868\u6f14\u8bb2\uff0c\u8ba8\u8bba\u4e0e\u5f00\u6e90\u3001Docker \u548c Linux \u5bb9\u5668\u6280\u672f\u76f8\u5173\u7684\u8bdd\u9898\u3002\u83f2\u5c14\u7ecf\u5e38\u5c31\u8fd9\u4e9b\u8bdd\u9898\u5199\u535a\u5ba2\uff0c\u53ef\u4ee5\u5728 Twitter \u4e0a @estesp \u627e\u5230\u4ed6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\uff0c\u5bb9\u5668\u8fd0\u884c\u65f6\u7684\u9009\u62e9\u5df2\u7ecf\u4e0d\u4ec5\u4ec5\u662f Docker \u5f15\u64ce\u4e86\uff0c\u8fd8\u6709\u4e86\u5176\u4ed6\u7684\u9009\u9879 \u5f00\u653e\u5bb9\u5668\u8ba1\u5212 (OCI) […]<\/p>\n","protected":false},"author":1329,"featured_media":127902,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-127898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/127898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=127898"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/127898\/revisions"}],"predecessor-version":[{"id":127905,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/127898\/revisions\/127905"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/127902"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=127898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=127898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=127898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}