{"id":107473,"date":"2026-09-19T19:17:54","date_gmt":"2026-09-19T11:17:54","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/107473.html"},"modified":"2026-09-19T19:17:54","modified_gmt":"2026-09-19T11:17:54","slug":"%e5%88%ab%e5%8f%aa%e6%87%82-docker%ef%bc%81%e6%b7%b1%e5%85%a5%e5%ae%b9%e5%99%a8%e5%ba%95%e5%b1%82%ef%bc%9acontainerd-%e6%89%8d%e6%98%af%e5%b9%95%e5%90%8e%e5%a4%a7%e4%bd%ac","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/107473.html","title":{"rendered":"\u522b\u53ea\u61c2 Docker\uff01\u6df1\u5165\u5bb9\u5668\u5e95\u5c42\uff1aContainerd \u624d\u662f\u5e55\u540e\u5927\u4f6c"},"content":{"rendered":"<h2>\u5bb9\u5668\u7ba1\u7406\u5de5\u5177Containerd<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111747-6aae6f5bb766f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u4e00\u3001Containerd\u4ecb\u7ecd<\/h3>\n<h4>1\u3001\u524d\u8a00<\/h4>\n<li>\u8d77\u6e90&#xff1a;2016.3 Docker1.11\u5185\u7f6econtainerd&#xff1b;\u4e4b\u540econtainerd\u4eceDocker\u5f15\u64ce\u5265\u79bb&#xff0c;\u72ec\u7acb\u5f00\u6e90&#xff0c;\u76ee\u6807\u662f\u6253\u9020\u5f00\u653e\u7a33\u5b9a\u7684\u5bb9\u5668\u8fd0\u884c\u57fa\u7840\u8bbe\u65bd&#xff0c;\u72ec\u7acb\u540e\u80fd\u529b\u8986\u76d6\u5bb9\u5668\u8fd0\u884c\u65f6\u5168\u91cf\u7ba1\u7406\u9700\u6c42\u3002<\/li>\n<li>\u5b9a\u4f4d&#xff1a;\u4e0d\u662f\u9762\u5411\u666e\u901a\u7ec8\u7aef\u7528\u6237&#xff0c;\u4e3b\u8981\u4f9b\u4e0a\u5c42\u7f16\u6392\u7cfb\u7edf\u96c6\u6210\u4f7f\u7528&#xff08;K8s\u3001Swarm\u3001Mesos&#xff09;\u3002<\/li>\n<li>\u5de5\u4f5c\u5f62\u6001&#xff1a;\u4ee5Daemon\u5b88\u62a4\u8fdb\u7a0b\u8fd0\u884c&#xff0c;\u5bf9\u5916\u63d0\u4f9bgRPC API&#xff0c;\u4e0a\u5c42\u7cfb\u7edf\u8c03\u7528API\u7ba1\u7406\u5bb9\u5668\u3002<\/li>\n<li>\u5206\u5de5&#xff08;\u6bcf\u4e2acontainerd\u53ea\u8d1f\u8d23\u4e00\u53f0\u673a\u5668&#xff09;\n<ul>\n<li>containerd&#xff1a;\u62c9\u53d6\u955c\u50cf\u3001\u542f\u505c\u5bb9\u5668\u3001\u7ba1\u7406\u7f51\u7edc\u4e0e\u5b58\u50a8&#xff1b;<\/li>\n<li>runc&#xff1a;\u771f\u6b63\u8d1f\u8d23\u521b\u5efa\u3001\u8fd0\u884c\u5bb9\u5668\u8fdb\u7a0b&#xff1b;<\/li>\n<li>\u652f\u6301\u5168\u90e8\u7b26\u5408OCI\u89c4\u8303\u7684\u5bb9\u5668\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u4f18\u52bf&#xff1a;containerd &#043; runc\u7ec4\u5408\u8f7b\u91cf&#xff0c;\u9002\u5408\u5bb9\u5668\u7f16\u6392\u573a\u666f&#xff1b;\u4e0eDocker\u89e3\u8026\u72ec\u7acb\u8fed\u4ee3&#xff0c;\u4e13\u6ce8\u5bb9\u5668\u8fd0\u884c\u7ba1\u7406&#xff0c;\u7a33\u5b9a\u6027\u66f4\u597d\u3002<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111748-6aae6f5c4473d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>2\u3001 containerd\u524d\u4e16\u4eca\u751f<\/h4>\n<li>2013\u5e74Docker\u63a8\u51fa\u5bb9\u5668\u4ea7\u54c1&#xff0c;Google\u62c5\u5fc3\u81ea\u8eabBorg\u7cfb\u7edf\u53d7\u5230\u51b2\u51fb&#xff0c;\u8054\u5408RedHat\u3001IBM\u8bf4\u670dDocker&#xff0c;\u5c06\u5e95\u5c42\u5bb9\u5668\u6838\u5fc3libcontainer\u6350\u732e\u7ed9\u4e2d\u7acb\u793e\u533aOCI&#xff08;\u5f00\u653e\u5bb9\u5668\u5021\u8bae&#xff09;&#xff0c;\u91cd\u547d\u540d\u4e3arunc\u3002<\/li>\n<li>Google\u8054\u5408RedHat\u3001IBM\u6210\u7acbCNCF\u4e91\u539f\u751f\u8ba1\u7b97\u57fa\u91d1\u4f1a&#xff0c;\u628a\u5185\u90e8Borg\u7cfb\u7edf\u5f00\u6e90&#xff0c;\u5373Kubernetes&#xff0c;\u53d1\u529b\u5927\u89c4\u6a21\u5bb9\u5668\u7f16\u6392\u573a\u666f\u3002<\/li>\n<li>2016\u5e74Docker\u63a8\u51faDocker Swarm&#xff0c;\u8bd5\u56fe\u7edf\u4e00\u5bb9\u5668\u751f\u6001&#xff0c;\u5b9e\u73b0\u5bb9\u5668\u7ba1\u7406\u4e0e\u5927\u89c4\u6a21\u7f16\u6392&#xff1b;\u5e02\u573a\u9a8c\u8bc1\u540e\u53d1\u73b0\u65e0\u6cd5\u6297\u8861K8s\u3002<\/li>\n<li>2017\u5e74Docker\u5ba3\u5e03\u539f\u751f\u652f\u6301Kubernetes&#xff0c;\u5728\u5927\u89c4\u6a21\u7f16\u6392\u5e02\u573a\u843d\u8d25&#xff1b;Docker\u5c06\u6838\u5fc3\u7ec4\u4ef6containerd\u6350\u732e\u7ed9CNCF&#xff0c;Docker\u5b9a\u4f4d\u8f6c\u4e3aPaaS\u5e73\u53f0\u3002<\/li>\n<li>2020\u5e74CNCF\u5ba3\u5e03Kubernetes 1.24\u4e0d\u518d\u539f\u751f\u652f\u6301Docker\u3002\n<ul>\n<li>\u65e9\u671fK8s\u4f7f\u7528Docker\u65f6&#xff0c;\u9700\u8981shim\u57ab\u7247&#xff0c;\u5c06K8s\u7684CRI&#xff08;\u5bb9\u5668\u8fd0\u884c\u65f6\u63a5\u53e3&#xff09;\u7ffb\u8bd1\u4e3aDocker API\u3002<\/li>\n<li>\u968f\u7740\u5bb9\u5668\u751f\u6001\u53d1\u5c55&#xff0c;K8s\u53d6\u6d88\u7ef4\u62a4\u57ab\u7247&#xff1b;containerd\u53ef\u76f4\u63a5\u65e0\u7f1d\u5bf9\u63a5K8s&#xff0c;\u6210\u4e3aK8s\u5bb9\u5668\u8fd0\u884c\u65f6\u7684\u4e3b\u6d41\u9009\u62e9\u3002<\/li>\n<\/ul>\n<\/li>\n<h4>3\u3001 containerd\u67b6\u6784<\/h4>\n<p>Containerd\u8bbe\u8ba1\u7684\u76ee\u7684\u662f**\u4e3a\u4e86\u5d4c\u5165\u5230Kubernetes\u4e2d\u4f7f\u7528**\u3002\u5df2\u7ecf\u5b9e\u73b0\u5927\u591a\u6570\u5bb9\u5668\u7ba1\u7406\u529f\u80fd&#xff0c;\u4f8b\u5982&#xff1a;\u5bb9\u5668\u751f\u547d\u5468\u671f\u7ba1\u7406\u3001\u5bb9\u5668\u955c\u50cf\u4f20\u8f93\u548c\u7ba1\u7406\u3001\u5bb9\u5668\u5b58\u50a8\u4e0e\u7f51\u7edc\u7ba1\u7406\u7b49<\/p>\n<h5>3.1 \u67b6\u6784\u56fe<\/h5>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111748-6aae6f5c70647.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\n<p>containerd\u91c7\u7528\u6807\u51c6**C\/S\u5ba2\u6237\u7aef-\u670d\u52a1\u7aef\u67b6\u6784**\u3002<\/p>\n<ul>\n<li>\u670d\u52a1\u7aef\u4f7f\u7528gRPC\u534f\u8bae\u5bf9\u5916\u63d0\u4f9b\u7a33\u5b9aAPI\u3002<\/li>\n<li>\u5ba2\u6237\u7aef\u8c03\u7528\u670d\u52a1\u7aefAPI\u5b8c\u6210\u5404\u7c7b\u5bb9\u5668\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u89e3\u8026\u8bbe\u8ba1&#xff1a;\u5c06\u4e0d\u540c\u7684\u804c\u8d23\u5212\u5206\u7ed9\u4e0d\u540c\u7684\u7ec4\u4ef6&#xff0c;\u6bcf\u4e2a\u7ec4\u4ef6\u5c31\u76f8\u5f53\u4e8e\u4e00\u4e2a\u5b50\u7cfb\u7edf<\/p>\n<p>&#xff08;subsystem&#xff09;\u3002\u8fde\u63a5\u4e0d\u540c\u5b50\u7cfb\u7edf\u7684\u7ec4\u4ef6\u88ab\u79f0\u4e3a\u6a21\u5757\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e24\u5927\u5b50\u7cfb\u7edf<\/p>\n<ul>\n<li>Bundle&#xff1a;\u5305\u542b\u914d\u7f6e\u3001\u5143\u6570\u636e\u3001\u6839\u6587\u4ef6\u7cfb\u7edf\u6570\u636e&#xff0c;\u53ef\u4ee5\u7406\u89e3\u4e3a\u5bb9\u5668\u6587\u4ef6\u7cfb\u7edf&#xff1b;\u652f\u6301\u4ece\u955c\u50cf\u63d0\u53d6\u3001\u6253\u5305Bundle\u3002<\/li>\n<li>Runtime&#xff1a;\u6267\u884cBundle&#xff0c;\u8d1f\u8d23\u521b\u5efa\u5bb9\u5668\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Containerd Core \u6838\u5fc3\u90e8\u5206**\u7531\u591a\u4e2a\u5b50\u7cfb\u7edf\u6784\u6210&#xff0c;&#061;&#061;\u5b50\u7cfb\u7edf\u4f9d\u9760\u4e00\u4e2a\u6216\u591a\u4e2a\u6a21\u5757\u534f\u540c\u5de5\u4f5c**&#061;&#061;&#xff0c;\u5404\u7c7b**\u6a21\u5757\u4ee5\u63d2\u4ef6\u5f62\u5f0f\u96c6\u6210\u8fdb Containerd\u3002\u63d2\u4ef6\u76f8\u4e92\u4f9d\u8d56**\u3002<\/p>\n<p>\u5e38\u89c1\u63d2\u4ef6&#xff1a;Service Plugin\u3001Metadata Plugin\u3001GC\u63d2\u4ef6\u3001Runtime\u63d2\u4ef6\u3001Snapshot\u63d2\u4ef6\u3001Content\u63d2\u4ef6\u7b49\u3002<\/p>\n<\/li>\n<h5>3.2 \u5e38\u7528\u63d2\u4ef6<\/h5>\n<li>Content Plugin&#xff1a;\u63d0\u4f9b\u955c\u50cf\u4e0d\u53ef\u53d8\u5185\u5bb9\u7684\u8bbf\u95ee&#xff0c;\u5b58\u50a8\u955c\u50cf\u9759\u6001\u6570\u636e\u3002<\/li>\n<li>Snapshot Plugin&#xff1a;\u7ba1\u7406\u955c\u50cf\u6587\u4ef6\u7cfb\u7edf\u5feb\u7167&#xff0c;\u955c\u50cf\u6bcf\u4e00\u5c42\u89e3\u538b\u6210\u6587\u4ef6\u7cfb\u7edf\u5feb\u7167&#xff0c;\u7c7b\u4f3cDocker\u7684graphdriver\u3002<\/li>\n<li>Metrics&#xff1a;\u66b4\u9732\u5404\u4e2a\u7ec4\u4ef6\u76d1\u63a7\u6307\u6807&#xff0c;\u7528\u4e8e\u76d1\u63a7\u91c7\u96c6\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111749-6aae6f5d43c50.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<h5>3.3 \u67b6\u6784\u7f29\u7565\u56fe<\/h5>\n<p>containerd\u6574\u4f53\u5212\u5206\u4e3a\u4e09\u5927\u5757&#xff1a;Storage\u5b58\u50a8\u3001Metadata\u5143\u6570\u636e\u3001Runtime\u8fd0\u884c\u65f6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111749-6aae6f5db412f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>Storage&#xff1a;Content\u3001Snapshot\u3001Diff<\/li>\n<li>Metadata&#xff1a;Images\u3001Containers\u3001Tasks\u3001Events<\/li>\n<li>\u901a\u8fc7gRPC\u5bf9\u5916\u63d0\u4f9b\u63a5\u53e3&#xff0c;Metrics\u91c7\u96c6\u76d1\u63a7&#xff1b;\u5e95\u5c42\u5bf9\u63a5\u64cd\u4f5c\u7cfb\u7edf&#xff0c;Runtime\u5bf9\u63a5runc\u7b49\u5e95\u5c42\u8fd0\u884c\u65f6\u3002<\/li>\n<\/ul>\n<h5>3.4 \u4e0e\u5176\u4ed6\u5bb9\u5668\u8fd0\u884c\u65f6\u6027\u80fd\u5bf9\u6bd4<\/h5>\n<p>\u6d4b\u8bd5\u7ef4\u5ea6&#xff1a;\u5bb9\u5668\u542f\u52a8\u3001\u505c\u6b62\u3001\u5220\u9664\u8017\u65f6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111750-6aae6f5e76fec.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7ed3\u8bba&#xff1a;containerd\u7efc\u5408\u6027\u80fd\u4f18\u4e8eDocker\u3001crio\u3002<\/p>\n<h3>\u4e8c\u3001Containerd\u5b89\u88c5<\/h3>\n<h4>1\u3001 YUM\u65b9\u5f0f\u5b89\u88c5<\/h4>\n<li>\n<p>\u5b9e\u9a8c\u73af\u5883&#xff1a;\u64cd\u4f5c\u7cfb\u7edf\u4e3aCentOS Stream 8\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b89\u88c5\u524d\u7f6e\u4f9d\u8d56\u5305&#xff1a;yum-utils\u3001device-mapper-persistent-data\u3001lvm2\u3001vim\u3002<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum install -y yum-utils device-mapper-persistent-data lvm2 vim<\/span><\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6edocker-ce\u8f6f\u4ef6\u6e90&#xff0c;\u901a\u8fc7yum\u4e0b\u8f7d\u5b89\u88c5containerd\u3002<\/p>\n<\/li>\n<li>\n<p>\u9a8c\u8bc1\u5b89\u88c5&#xff1a;rpm -qa | grep containerd\u67e5\u770b\u662f\u5426\u5b58\u5728\u5b89\u88c5\u5305\u3002<\/p>\n<\/li>\n<li>\n<p>\u542f\u52a8\u4e0e\u5f00\u673a\u81ea\u542f&#xff1a;systemctl start containerd\u3001systemctl enable containerd&#xff0c;systemctl status containerd\u67e5\u770b\u8fd0\u884c\u72b6\u6001\u3002<\/p>\n<\/li>\n<li>\n<p>\u9a8c\u8bc1containerd\u7248\u672c&#xff1a;\u4f7f\u7528ctr\u547d\u4ee4&#xff0c;ctr\u662fcontainerd\u81ea\u5e26\u5ba2\u6237\u7aef&#xff0c;\u7528\u4e8e\u5bb9\u5668\u4e0e\u955c\u50cf\u7ba1\u7406&#xff1b;ctr version\u67e5\u770b\u5ba2\u6237\u7aef\u3001\u670d\u52a1\u7aef\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<\/li>\n<p><span class=\"token comment\"># 1.\u83b7\u53d6\u963f\u91cc\u4e91YUM\u6e90<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum-config-manager &#8211;add-repo<\/span><br \/>\nhttps:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/docker-ce.repo<br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum makecache<\/span><br \/>\n<span class=\"token comment\"># 2.\u67e5\u770bYUM\u6e90\u4e2dContainerd\u8f6f\u4ef6<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum list | grep containerd<\/span><br \/>\ncontainerd.io.x86_64 <span class=\"token number\">1.6<\/span>.32-3.1.el8<br \/>\ndocker-ce-stable<br \/>\n<span class=\"token comment\"># 3.\u5b89\u88c5Containerd.io\u8f6f\u4ef6&#xff0c;\u5373\u53ef\u5b89\u88c5Containerd<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># yum -y install containerd.io<\/span><br \/>\n<span class=\"token comment\"># 4.\u4f7f\u7528rpm -qa\u547d\u4ee4\u67e5\u770b\u662f\u5426\u5b89\u88c5<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># rpm -qa | grep containerd<\/span><br \/>\ncontainerd.io-1.6.32-3.1.el8.x86_64<br \/>\n<span class=\"token comment\"># 5.\u8bbe\u7f6econtainerd\u670d\u52a1\u542f\u52a8\u53ca\u5f00\u673a\u81ea\u542f\u52a8<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl enable containerd &#8211;now<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl status containerd<\/span><br \/>\n<span class=\"token comment\"># 6.\u9a8c\u8bc1<\/span><br \/>\n<span class=\"token comment\"># \u5b89\u88c5Containerd\u65f6ctr\u547d\u4ee4\u4ea6\u53ef\u4f7f\u7528&#xff0c;ctr\u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u7ba1\u7406\u5bb9\u5668\u53ca\u5bb9\u5668\u955c\u50cf\u7b49\u3002<\/span><br \/>\n<span class=\"token comment\"># \u4f7f\u7528ctr\u547d\u4ee4\u67e5\u770bContainerd\u5ba2\u6237\u7aef\u53ca\u670d\u52a1\u7aef\u76f8\u5173\u4fe1\u606f<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ctr version<\/span><br \/>\nClient:<br \/>\nVersion: <span class=\"token number\">1.6<\/span>.32<br \/>\nRevision: 8b3b7ca2e5ce38e8f31a34f35b2b68ceb8470d89<br \/>\nGo version: go1.21.10<br \/>\nServer:<br \/>\nVersion: <span class=\"token number\">1.6<\/span>.32<br \/>\nRevision: 8b3b7ca2e5ce38e8f31a34f35b2b68ceb8470d89<br \/>\nUUID: 979940af-68e0-4681-a560-189eeaefbdfc<\/p>\n<h4>2\u3001 \u4e8c\u8fdb\u5236\u65b9\u5f0f\u5b89\u88c5<\/h4>\n<p>containerd\u4e8c\u8fdb\u5236\u5305\u5206\u4e3a\u4e24\u79cd&#xff1a;<\/p>\n<ul>\n<li>\u7b2c\u4e00\u79cd&#xff1a;containerd-xxx&#xff0c;\u7528\u4e8e\u5355\u673a\u6d4b\u8bd5&#xff0c;\u4e0d\u5305\u542brunc&#xff0c;\u9700\u8981\u624b\u52a8\u63d0\u524d\u5b89\u88c5runc\u3002<\/li>\n<li>\u7b2c\u4e8c\u79cd&#xff1a;cri-containerd-cni-xxx&#xff0c;\u96c6\u6210\u7cfb\u7edf\u6240\u9700runc\u3001CNI\u7f51\u7edc\u63d2\u4ef6&#xff0c;K8s\u96c6\u7fa4\u90e8\u7f72\u63a8\u8350\u8be5\u5305\u3002<\/li>\n<\/ul>\n<h5>2.1 \u5b89\u88c5\u6b65\u9aa4&#xff1a;<\/h5>\n<li>\n<p>\u4ecegithub\u5b98\u7f51\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u7684cri-containerd-cni\u538b\u7f29\u5305&#xff0c;\u4e0a\u4f20\u81f3\u670d\u52a1\u5668\u3002<\/p>\n<\/li>\n<li>\n<p>\u89e3\u538b\u538b\u7f29\u5305&#xff0c;\u89e3\u538b\u540e\u76ee\u5f55\u5305\u542b&#xff1a;etc&#xff08;\u914d\u7f6e\u6587\u4ef6&#xff09;\u3001opt\u3001usr&#xff08;\u4e8c\u8fdb\u5236\u53ef\u6267\u884c\u7a0b\u5e8f&#xff09;\u3002<\/p>\n<p>\u89e3\u538b\u540e\u76ee\u5f55\u7ed3\u6784\u4e0e\u4f5c\u7528&#xff1a;<\/p>\n<ul>\n<li>\n<p>**etc\u76ee\u5f55&#xff1a;**\u5b58\u653econtainerd\u670d\u52a1\u7ba1\u7406\u914d\u7f6e\u6587\u4ef6\u3001cni\u865a\u62df\u7f51\u5361\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<ul>\n<li>etc\/systemd\/system\/containerd.service&#xff1a;systemd\u670d\u52a1\u5355\u5143\u6587\u4ef6&#xff0c;\u5b9a\u4e49containerd\u670d\u52a1\u542f\u52a8\u53c2\u6570\u3002<\/li>\n<li>etc\/cni\/net.d\/10-containerd-net.conflist&#xff1a;CNI\u7f51\u7edc\u63d2\u4ef6\u914d\u7f6e\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111750-6aae6f5eb7fd8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>opt\u76ee\u5f55&#xff1a;\u5b58\u653eCNI\u7f51\u7edc\u63d2\u4ef6\u4e8c\u8fdb\u5236\u7a0b\u5e8f&#xff08;bridge\u3001host-local\u3001portmap\u7b49&#xff09;&#xff0c;GCE\u4e91\u73af\u5883\u914d\u5957\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111751-6aae6f5f13d62.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>usr\/local\u76ee\u5f55&#xff1a;\u6838\u5fc3\u4e8c\u8fdb\u5236\u7a0b\u5e8f,containerd\u8fd0\u884c\u65f6\u6587\u4ef6&#xff0c;\u5305\u542brunc\u3002<\/p>\n<ul>\n<li>bin&#xff1a;containerd\u4e3b\u7a0b\u5e8f\u3001ctr\u5ba2\u6237\u7aef\u3001crictl\u3001containerd-shim\u5bb9\u5668\u57ab\u7247\u7a0b\u5e8f\u3002<\/li>\n<li>sbin&#xff1a;\u5185\u7f6erunc&#xff0c;\u8d1f\u8d23\u5e95\u5c42\u521b\u5efaOCI\u5bb9\u5668\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111751-6aae6f5f69e35.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5c06\u89e3\u538b\u540e\u7684service\u670d\u52a1\u6587\u4ef6\u590d\u5236\u5230\/etc\/systemd\/system\/&#xff0c;\u751f\u6210containerd\u7cfb\u7edf\u670d\u52a1\u5355\u5143\u6587\u4ef6\u3002<\/p>\n<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111751-6aae6f5f94b3e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\n<p>\u751f\u6210containerd\u4e3b\u914d\u7f6e\u6587\u4ef6\/etc\/containerd\/config.toml&#xff0c;\u53ef\u81ea\u5b9a\u4e49\u955c\u50cf\u4ed3\u5e93\u3001\u5b58\u50a8\u3001\u8fd0\u884c\u65f6\u7b49\u53c2\u6570\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111751-6aae6f5fb8f12.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111751-6aae6f5fd39d8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u91cd\u8f7dsystemd\u914d\u7f6e&#xff0c;\u542f\u52a8containerd\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u3002<\/p>\n<\/li>\n<li>\n<p>\u6267\u884cctr version\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<\/li>\n<li>\n<p>\u67e5\u770b\u914d\u7f6e\u6587\u4ef6config.toml<\/p>\n<\/li>\n<p>\u91cd\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u914d\u7f6e\u5bb9\u5668\u9ed8\u8ba4\u8fd0\u884c\u65f6&#xff08;runc&#xff09;\u3001\u955c\u50cf\u62c9\u53d6\u5730\u5740\u3001\u5feb\u7167\u5668&#xff08;overlayfs&#xff09;\u3002<\/li>\n<li>\u5305\u542bCNI\u7f51\u7edc\u63d2\u4ef6\u914d\u7f6e\u3001\u5bb9\u5668\u65e5\u5fd7\u3001\u6743\u9650\u3001\u955c\u50cf\u4ed3\u5e93\u76f8\u5173\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<h5>2.2 \u5b89\u88c5runC&#xff1a;<\/h5>\n<ul>\n<li>runc\u8d1f\u8d23\u5e95\u5c42\u521b\u5efaOCI\u5bb9\u5668&#xff0c;\u7531\u4e8e\u4e8c\u8fdb\u5236\u5305\u4e2d\u63d0\u4f9b\u7684runC\u9ed8\u8ba4\u9700\u8981\u7cfb\u7edf\u4e2d\u5b89\u88c5seccomp\u652f\u6301&#xff0c;\u9700\u8981\u5355\u72ec\u5b89\u88c5&#xff0c;\u4e14\u4e0d\u540c\u7248\u672crunC\u5bf9seccomp\u7248\u672c\u8981\u6c42\u4e00\u81f4;<\/li>\n<li>\u9700\u8981\u5355\u72ec\u5b89\u88c5\u5bf9\u5e94\u7248\u672c&#xff0c;\u89e3\u538b\u4e8c\u8fdb\u5236\u6587\u4ef6\u653e\u5230\/usr\/bin&#xff0c;\u6267\u884crunc &#8211;version\u6821\u9a8c\u3002<\/li>\n<\/ul>\n<p><span class=\"token comment\"># \u4f7f\u7528wget\u4e0b\u8f7drunc<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># wget https:\/\/github.com\/opencontainers\/runc\/releases\/download\/v1.3.0\/runc.amd64<\/span><\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5runc<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># mv runc.amd64 \/usr\/sbin\/runc<\/span><\/p>\n<p><span class=\"token comment\"># \u4e3arunc\u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># chmod &#043;x \/usr\/sbin\/runc<\/span><\/p>\n<p><span class=\"token comment\"># \u4f7f\u7528runc\u547d\u4ee4\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># runc -v<\/span><br \/>\nrunc version <span class=\"token number\">1.3<\/span>.0<br \/>\ncommit: v1.3.0-0-g4ca628d1<br \/>\nspec: <span class=\"token number\">1.2<\/span>.1<br \/>\ngo: go1.23.8<br \/>\nlibseccomp: <span class=\"token number\">2.5<\/span>.6<\/p>\n<h4>3\u3001 \u4e24\u79cd\u5b89\u88c5\u65b9\u5f0f\u5bf9\u6bd4<\/h4>\n<li>YUM\u5b89\u88c5&#xff1a;\u7b80\u5355\u5feb\u6377&#xff0c;\u9002\u5408\u5feb\u901f\u6d4b\u8bd5&#xff1b;\u7248\u672c\u7531yum\u6e90\u63d0\u4f9b\u3002<\/li>\n<li>\u4e8c\u8fdb\u5236\u5305\u5b89\u88c5&#xff1a;\u7248\u672c\u53ef\u63a7&#xff0c;\u53ef\u81ea\u5b9a\u4e49\u7ec4\u4ef6&#xff0c;\u751f\u4ea7K8s\u73af\u5883\u5e38\u7528&#xff0c;\u63a8\u8350cri-containerd-cni\u5b8c\u6574\u5305\u3002<\/li>\n<hr \/>\n<h3>\u4e09\u3001Containerd\u5bb9\u5668\u955c\u50cf\u7ba1\u7406<\/h3>\n<h4>1\u3001 \u5e2e\u52a9\u547d\u4ee4<\/h4>\n<li>\u955c\u50cf\u7ba1\u7406\u547d\u4ee4\u533a\u5206&#xff1a;\n<ul>\n<li>Docker&#xff1a;\u4f7f\u7528docker images\u7ba1\u7406\u955c\u50cf<\/li>\n<li>\u5355\u673acontainerd&#xff1a;\u4f7f\u7528ctr images&#xff0c;\u662fcontainerd\u539f\u751fCLI\u5ba2\u6237\u7aef<\/li>\n<li>K8s\u4e2d\u7684containerd&#xff1a;\u4f7f\u7528crictl images&#xff0c;K8s\u793e\u533a\u4e13\u7528CLI\u5de5\u5177<\/li>\n<\/ul>\n<\/li>\n<li>ctr\u8bf4\u660e&#xff1a;\u5c5e\u4e8e\u8c03\u8bd5\u7ba1\u7406\u5ba2\u6237\u7aef&#xff0c;\u4e0d\u4fdd\u8bc1\u7248\u672c\u5411\u540e\u517c\u5bb9\u3002<\/li>\n<li>\u5168\u5c40\u53c2\u6570\u91cd\u70b9&#xff1a;&#8211;namespace \/ -n\u6307\u5b9a\u547d\u540d\u7a7a\u95f4&#xff0c;\u9ed8\u8ba4\u547d\u540d\u7a7a\u95f4default&#xff1b;K8s\u4f7f\u7528k8s.io\u547d\u540d\u7a7a\u95f4\u3002<\/li>\n<li>\u67e5\u770b\u955c\u50cf\u547d\u4ee4\u5e2e\u52a9<\/li>\n<p><span class=\"token comment\">#\u547d\u4ee4\u5e2e\u52a9<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ctr &#8211;help<\/span><\/p>\n<p><span class=\"token comment\"># \u5b50\u547d\u4ee4\u5e2e\u52a9<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ctr images &#8211;help<\/span><\/p>\n<p>ctr images\u652f\u6301list\u3001pull\u3001push\u3001export\u3001import\u3001mount\u3001rm\u3001tag\u7b49\u5b50\u547d\u4ee4\u3002<\/p>\n<h4>2\u3001\u67e5\u770b\u955c\u50cf<\/h4>\n<li>\u547d\u4ee4&#xff1a;ctr images list&#xff0c;\u7b80\u5199 ctr images ls<\/li>\n<li>\u8f93\u51fa\u5b57\u6bb5&#xff1a;REF&#xff08;\u955c\u50cf\u5168\u540d&#xff09;\u3001TYPE\u3001DIGEST&#xff08;\u54c8\u5e0c\u6458\u8981&#xff09;\u3001SIZE\u3001PLATFORMS&#xff08;\u67b6\u6784&#xff09;\u3001LABELS\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111752-6aae6f602a39f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<h4>3\u3001\u4e0b\u8f7d\u955c\u50cf<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr images pull \u5b8c\u6574\u955c\u50cf\u5730\u5740<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111752-6aae6f60464d9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>containerd\u517c\u5bb9OCI\u6807\u51c6\u955c\u50cf&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528Docker\u5b98\u65b9\u3001Dockerfile\u6784\u5efa\u51fa\u6765\u7684\u955c\u50cf\u3002<\/li>\n<li>\u91cd\u70b9\u5751&#xff1a;&#061;&#061;ctr images pull\u4e0d\u80fd\u76f4\u63a5\u7b80\u5199\u955c\u50cf\u540d&#061;&#xff08;\u4e0d\u80fd\u76f4\u63a5\u5199nginx:alpine&#xff09;&#xff0c;\u5fc5\u987b\u5199\u5b8c\u6574\u955c\u50cf\u5730\u5740&#xff08;\u5e26\u4ed3\u5e93\u57df\u540d&#xff09;\u3002<\/li>\n<li>\u62c9\u53d6\u5b8c\u6210\u540e&#xff0c;\u7528ctr images ls\u9a8c\u8bc1\u955c\u50cf\u3002<\/li>\n<h4>4\u3001\u955c\u50cf\u6302\u8f7d<\/h4>\n<li>\u4f5c\u7528&#xff1a;\u76f4\u63a5\u628a\u955c\u50cf\u6302\u8f7d\u5230\u672c\u5730\u76ee\u5f55&#xff0c;\u4e0d\u7528\u542f\u52a8\u5bb9\u5668\u5c31\u53ef\u4ee5\u67e5\u770b\u955c\u50cf\u5185\u90e8\u6587\u4ef6\u5185\u5bb9\u3002<\/li>\n<li>\u6302\u8f7d\u547d\u4ee4&#xff1a;ctr images mount \u5b8c\u6574\u955c\u50cf\u540d \/mnt<\/li>\n<li>\u67e5\u770b\u6302\u8f7d&#xff1a;ls \/mnt\u6d4f\u89c8\u955c\u50cf\u5185\u6587\u4ef6\u3002<\/li>\n<li>\u5378\u8f7d\u547d\u4ee4&#xff1a;umount \/mnt\u3002<\/li>\n<h4>5\u3001\u955c\u50cf\u5bfc\u51fa<\/h4>\n<li>\u547d\u4ee4&#xff1a;ctr images export &#8211;platform linux\/amd64 nginx.tar \u5b8c\u6574\u955c\u50cf\u540d<\/li>\n<li>&#8211;platform&#xff1a;\u6307\u5b9a\u5bfc\u51fa\u955c\u50cf\u7684\u5e73\u53f0\u67b6\u6784\u3002<\/li>\n<li>\u529f\u80fd&#xff1a;\u5c06\u672c\u5730\u955c\u50cf\u6253\u5305\u4e3atar\u5f52\u6863\u6587\u4ef6&#xff0c;\u7528\u4e8e\u79bb\u7ebf\u8fc1\u79fb\u3002<\/li>\n<h4>6\u3001\u955c\u50cf\u5220\u9664<\/h4>\n<li>\u547d\u4ee4&#xff1a;ctr images rm \u5b8c\u6574\u955c\u50cf\u540d&#xff08;delete\/rm\u5747\u53ef&#xff09;<\/li>\n<li>\u53c2\u6570&#8211;sync&#xff1a;\u540c\u6b65\u5220\u9664\u955c\u50cf\u4ee5\u53ca\u5173\u8054\u7684\u8d44\u6e90\u3002<\/li>\n<li>\u5220\u9664\u540e\u6267\u884cctr images ls\u9a8c\u8bc1\u955c\u50cf\u662f\u5426\u79fb\u9664\u3002<\/li>\n<h4>7\u3001\u955c\u50cf\u5bfc\u5165<\/h4>\n<li>\u547d\u4ee4&#xff1a;ctr images import &#8211;platform linux\/amd64 nginx.tar<\/li>\n<li>\u529f\u80fd&#xff1a;\u628atar\u955c\u50cf\u5305\u5bfc\u5165containerd\u3002<\/li>\n<li>\u5bfc\u5165\u5b8c\u6210&#xff0c;ctr images ls\u67e5\u770b\u5bfc\u5165\u540e\u7684\u955c\u50cf\u3002<\/li>\n<h4>8\u3001\u4fee\u6539\u955c\u50cftag<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr images tag<\/p>\n<p>ctr images tag \u539f\u5b8c\u6574\u955c\u50cf\u540d \u65b0\u5b8c\u6574\u955c\u50cf\u540d<\/p>\n<li>\n<p>\u539f\u7406&#xff1a;\u4e0d\u662f\u590d\u5236\u955c\u50cf\u6587\u4ef6&#xff0c;\u53ea\u662f\u7ed9\u540c\u4e00\u4e2a\u955c\u50cf\u65b0\u589e\u4e00\u4e2a\u5f15\u7528\u6807\u7b7e&#xff08;\u548cdocker tag\u903b\u8f91\u4e00\u81f4&#xff0c;\u5e95\u5c42\u955c\u50cf\u54c8\u5e0c\u4e0d\u53d8&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u26a0\ufe0f\u91cd\u70b9\u8003\u70b9&#xff1a;ctr tag\u540c\u6837\u5fc5\u987b\u5199\u5b8c\u6574\u955c\u50cf\u540d\u79f0&#xff0c;\u4e0d\u80fd\u7b80\u5199\u3002<\/p>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<\/li>\n<p><span class=\"token comment\"># \u628a054b8ac70e8010d90f2ac00ef29e6580.mirror.swr.myhuaweicloud.com\/library\/nginx:latest \u4fee\u6539\u4e3a nginx:latest<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ctr images tag 054b8ac70e8010d90f2ac00ef29e6580.mirror.swr.myhuaweicloud.com\/library\/nginx:latest nginx:latest<\/span><\/p>\n<li>\n<p>\u9a8c\u8bc1&#xff1a;\u6267\u884cctr images ls&#xff0c;\u5217\u8868\u91cc\u4f1a\u51fa\u73b0\u4e24\u6761 REF&#xff0c;\u4f46 DIGEST \u6458\u8981\u5b8c\u5168\u4e00\u6837&#xff0c;\u4ee3\u8868\u662f\u540c\u4e00\u4e2a\u955c\u50cf\u3002<\/p>\n<\/li>\n<li>\n<p>\u8865\u5145&#xff1a;\u5982\u679c\u4e0d\u9700\u8981\u65e7\u6807\u7b7e&#xff0c;\u53ef\u4ee5\u5355\u72ecctr images rm \u65e7\u955c\u50cf\u5f15\u7528&#xff0c;\u53ea\u8981\u8fd8\u6709\u4e00\u4e2a tag \u5f15\u7528\u5b58\u5728&#xff0c;\u955c\u50cf\u672c\u4f53\u4e0d\u4f1a\u88ab\u5220\u9664\u3002<\/p>\n<\/li>\n<hr \/>\n<h5>\u7b80\u7b54\u80cc\u8bf5\u7cbe\u7b80\u7248<\/h5>\n<li>\n<p>\u7ba1\u7406\u955c\u50cf\u5de5\u5177\u533a\u5206&#xff1a;docker\u7528docker images&#xff1b;<\/p>\n<ul>\n<li>\n<p>\u5355\u673acontainerd\u539f\u751fctr images&#xff1b;<\/p>\n<\/li>\n<li>\n<p>K8s\u8282\u70b9\u4f7f\u7528crictl images\u3002<\/p>\n<\/li>\n<li>\n<p>ctr\u652f\u6301\u547d\u540d\u7a7a\u95f4&#xff0c;\u9ed8\u8ba4default&#xff0c;K8s\u4f7f\u7528k8s.io\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>ctr images ls\u67e5\u770b\u672c\u5730\u955c\u50cf&#xff0c;\u663e\u793a\u955c\u50cf\u5f15\u7528\u3001\u6458\u8981\u3001\u5927\u5c0f\u3001\u67b6\u6784\u7b49\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p>containerd\u517c\u5bb9OCI\u955c\u50cf&#xff1b;ctr\u62c9\u53d6\u955c\u50cf\u5fc5\u987b\u586b\u5199\u5b8c\u6574\u955c\u50cf\u4ed3\u5e93\u5730\u5740&#xff0c;\u4e0d\u80fd\u7b80\u5199\u3002<\/p>\n<\/li>\n<li>\n<p>ctr images mount\u6302\u8f7d\u955c\u50cf&#xff0c;\u65e0\u9700\u542f\u52a8\u5bb9\u5668\u67e5\u770b\u5185\u90e8\u6587\u4ef6&#xff1b;umount\u5378\u8f7d\u3002<\/p>\n<\/li>\n<li>\n<p>ctr images export\u5bfc\u51fa\u955c\u50cf\u4e3atar\u5305&#xff0c;\u652f\u6301\u6307\u5b9a\u5e73\u53f0\u67b6\u6784&#xff0c;\u7528\u4e8e\u79bb\u7ebf\u8fc1\u79fb\u3002<\/p>\n<\/li>\n<li>\n<p>ctr images rm\u5220\u9664\u955c\u50cf&#xff0c;&#8211;sync\u540c\u6b65\u6e05\u7406\u5173\u8054\u8d44\u6e90\u3002<\/p>\n<\/li>\n<li>\n<p>ctr images import\u5bfc\u5165tar\u955c\u50cf\u5305\u3002<\/p>\n<\/li>\n<hr \/>\n<h3>\u56db\u3001containerd\u5bb9\u5668\u7ba1\u7406<\/h3>\n<p>\u6838\u5fc3\u6982\u5ff5\u533a\u5206&#xff1a;<\/p>\n<p>container&#xff08;\u9759\u6001\u5bb9\u5668&#xff09; \u548c task&#xff08;\u52a8\u6001\u4efb\u52a1&#xff0c;\u5bb9\u5668\u5185\u8fd0\u884c\u7684\u8fdb\u7a0b&#xff09;<\/p>\n<p>ctr container create\u53ea\u662f\u521b\u5efa\u9759\u6001\u5bb9\u5668\u8d44\u6e90&#xff0c;\u4e0d\u4f1a\u542f\u52a8\u8fdb\u7a0b&#xff1b;\u5fc5\u987b\u7528 ctr task \u7ba1\u7406\u8fdb\u7a0b\u542f\u505c\u3002<\/p>\n<h4>1\u3001\u83b7\u53d6\u547d\u4ee4\u5e2e\u52a9<\/h4>\n<li>\n<p>ctr &#8211;help&#xff1a;\u67e5\u770bctr\u6574\u4f53\u5e2e\u52a9&#xff0c;ctr\u662f\u8c03\u8bd5\u7ba1\u7406\u5ba2\u6237\u7aef&#xff0c;\u63a5\u53e3\u4e0d\u4fdd\u8bc1\u5411\u540e\u517c\u5bb9\u3002<\/p>\n<\/li>\n<li>\n<p>\u5168\u5c40\u53c2\u6570&#xff1a;-n \/ &#8211;namespace\u6307\u5b9a\u547d\u540d\u7a7a\u95f4&#xff0c;\u9ed8\u8ba4default&#xff0c;K8s\u7528k8s.io\u3002<\/p>\n<\/li>\n<li>\n<p>ctr container &#8211;help&#xff1a;\u5bb9\u5668\u5b50\u547d\u4ee4\u5e2e\u52a9&#xff0c;create\u3001delete\u3001info\u3001list\u3001label\u7b49\u3002<\/p>\n<ul>\n<li>\u4f7f\u7528ctr container create \u547d\u4ee4\u521b\u5efa\u5bb9\u5668\u540e&#xff0c;\u5bb9\u5668\u5e76\u6ca1\u6709\u5904\u4e8e\u8fd0\u884c\u72b6\u6001&#xff0c;\u5176\u53ea\u662f\u4e00\u4e2a\u9759\u6001\u7684\u5bb9\u5668\u3002<\/li>\n<li>\u8fd9\u4e2acontainer \u5bf9\u8c61\u53ea\u662f**\u5305\u542b\u4e86\u8fd0\u884c\u4e00\u4e2a\u5bb9\u5668\u6240\u9700\u7684\u8d44\u6e90\u53ca\u914d\u7f6e\u7684\u6570\u636e\u7ed3\u6784**&#xff0c;\u4f8b\u5982&#xff1a; namespaces\u3001rootfs \u548c\u5bb9\u5668\u7684\u914d\u7f6e\u90fd\u5df2\u7ecf\u521d\u59cb\u5316\u6210\u529f\u4e86&#xff0c;\u53ea\u662f\u7528\u6237\u8fdb\u7a0b\u8fd8\u6ca1\u6709\u542f\u52a8\u3002\u9700\u8981\u4f7f\u7528ctr tasks\u547d\u4ee4\u624d\u80fd\u83b7\u53d6\u4e00\u4e2a\u52a8\u6001\u5bb9\u5668\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>ctr run &#8211;help&#xff1a;run\u547d\u4ee4\u5e2e\u52a9&#xff0c;ctr run\u53ef\u4ee5\u4e00\u6b65\u521b\u5efa\u9759\u6001\u5bb9\u5668\u5e76\u542f\u52a8task&#xff0c;\u76f4\u63a5\u8fd0\u884c\u5bb9\u5668\u3002<\/p>\n<\/li>\n<h4>2\u3001\u67e5\u770b\u9759\u6001\u5bb9\u5668<\/h4>\n<ul>\n<li>\u547d\u4ee4&#xff1a;ctr container ls&#xff0c;\u7b80\u5199  ctr c ls<\/li>\n<li>\u4f5c\u7528&#xff1a;\u5217\u51fa\u9759\u6001\u5bb9\u5668&#xff08;\u4ec5\u8d44\u6e90\u914d\u7f6e&#xff0c;\u4e0d\u4e00\u5b9a\u6b63\u5728\u8fd0\u884c&#xff09;<\/li>\n<\/ul>\n<h4>3\u3001\u67e5\u770b\u4efb\u52a1task&#xff08;\u5bb9\u5668\u8fd0\u884c\u8fdb\u7a0b&#xff09;<\/h4>\n<ul>\n<li>\u547d\u4ee4&#xff1a;ctr task ls&#xff0c;\u7b80\u5199 ctr t ls<\/li>\n<li>\u4f5c\u7528&#xff1a;\u67e5\u770b\u5bb9\u5668\u91cc\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u4efb\u52a1&#xff1b;\u53ea\u6709\u542f\u52a8task\u4e4b\u540e&#xff0c;\u5bb9\u5668\u624d\u771f\u6b63\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u3002<\/li>\n<\/ul>\n<h4>4\u3001\u521b\u5efa\u9759\u6001\u5bb9\u5668<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr container create \u5b8c\u6574\u955c\u50cf\u540d \u5bb9\u5668\u540d<\/p>\n<li>\n<p>\u6267\u884ccreate\u4e4b\u540e&#xff0c;\u53ea\u4f1a\u751f\u6210\u9759\u6001\u5bb9\u5668\u5bf9\u8c61&#xff0c;\u5305\u542brootfs\u3001namespace\u3001\u914d\u7f6e\u7b49\u8d44\u6e90&#xff0c;\u5e94\u7528\u8fdb\u7a0b\u5e76\u672a\u542f\u52a8\u3002<\/p>\n<\/li>\n<li>\n<p>\u67e5\u770b\u5bb9\u5668\u8be6\u7ec6\u4fe1\u606f&#xff1a;<\/p>\n<p>ctr container info \u5bb9\u5668\u540d<\/p>\n<p>\u26a0\ufe0f\u91cd\u70b9&#xff1a;\u9759\u6001\u5bb9\u5668\u53ea\u662f\u4e00\u5957\u914d\u7f6e&#xff0c;\u6ca1\u6709\u8fd0\u884c\u4e2d\u7684\u8fdb\u7a0b&#xff0c;\u9700\u8981task\u547d\u4ee4\u542f\u52a8\u3002<\/p>\n<\/li>\n<h4>5\u3001\u9759\u6001\u5bb9\u5668\u542f\u52a8\u4e3a\u52a8\u6001\u5bb9\u5668<\/h4>\n<li>\u547d\u4ee4&#xff1a;ctr task start -d \u5bb9\u5668\u540d&#xff0c;-d\u540e\u53f0\u8fd0\u884c\u3002<\/li>\n<li>\u6267\u884c\u540etask**\u72b6\u6001\u53d8\u4e3aRUNNING**&#xff0c;\u5bbf\u4e3b\u673a\u4e0a\u53ef\u4ee5\u770b\u5230\u5bb9\u5668\u5bf9\u5e94\u7684\u8fdb\u7a0b\u3002<\/li>\n<li>\u9a8c\u8bc1&#xff1a;ctr task ls\u67e5\u770b\u72b6\u6001&#xff1b;ps\u547d\u4ee4\u5728\u5bbf\u4e3b\u673a\u4e0a\u53ef\u770b\u5230\u5bb9\u5668\u8fdb\u7a0b\u3002<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111752-6aae6f606d61b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>6\u3001\u8fdb\u5165\u5bb9\u5668\u5185\u90e8\u64cd\u4f5c<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr  task  exec  &#8211;exec-id    $RANDOM   -t    \u5bb9\u5668\u540d    \/bin\/sh<\/p>\n<ul>\n<li>&#8211;exec-id&#xff1a;\u5fc5\u987b\u6307\u5b9a\u4e00\u4e2a\u552f\u4e00id&#xff0c;$RANDOM\u53ef\u4ee5\u81ea\u52a8\u751f\u6210\u968f\u673aid\u3002<\/li>\n<li>-t&#xff1a;\u5206\u914d\u7ec8\u7aef&#xff0c;\u5b9e\u73b0\u4ea4\u4e92\u5f0f\u8fdb\u5165\u5bb9\u5668\u3002<\/li>\n<\/ul>\n<h4>7\u3001\u76f4\u63a5\u8fd0\u884c\u52a8\u6001\u5bb9\u5668&#xff08;\u4e00\u6b65\u5230\u4f4d&#xff09;<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr  run  -d  &#8211;net-host    \u5b8c\u6574\u955c\u50cf\u540d   \u5bb9\u5668\u540d<\/p>\n<li>ctr run &#061; container create &#043; task start&#xff0c;\u4e00\u6761\u547d\u4ee4\u76f4\u63a5\u521b\u5efa\u5e76\u542f\u52a8\u5bb9\u5668\u3002<\/li>\n<li>\u2013net-host&#xff1a;\u4e3b\u673a\u7f51\u7edc\u6a21\u5f0f&#xff0c;\u5bb9\u5668\u548c\u5bbf\u4e3b\u673a\u5171\u7528\u7f51\u7edc\u6808&#xff0c;\u5bb9\u5668IP\u5c31\u662f\u5bbf\u4e3b\u673aIP&#xff0c;\u7b49\u4ef7docker\u7684&#8211;net&#061;host\u3002<\/li>\n<h4>8\u3001\u6682\u505c\u5bb9\u5668<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr  tasks  pause  \u5bb9\u5668\u540d<\/p>\n<ul>\n<li>\u6682\u505c\u5bb9\u5668\u5185\u8fdb\u7a0b&#xff0c;task\u72b6\u6001\u53d8\u4e3aPAUSED\u3002<\/li>\n<li>\u9a8c\u8bc1&#xff1a;ctr task ls\u67e5\u770b\u72b6\u6001\u3002<\/li>\n<\/ul>\n<h4>9\u3001\u6062\u590d\u5bb9\u5668<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr  tasks  resume   \u5bb9\u5668\u540d<\/p>\n<ul>\n<li>\u5c06PAUSED\u72b6\u6001\u7684\u5bb9\u5668\u6062\u590d\u8fd0\u884c&#xff0c;\u72b6\u6001\u53d8\u56deRUNNING\u3002<\/li>\n<\/ul>\n<h4>10\u3001\u505c\u6b62\u5bb9\u5668<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr  task  kill  \u5bb9\u5668\u540d<\/p>\n<ul>\n<li>\n<p>\u6740\u6389\u5bb9\u5668\u5185\u8fd0\u884c\u8fdb\u7a0b&#xff0c;task\u72b6\u6001\u53d8\u4e3aSTOPPED\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;kill\u53ea\u662f\u505c\u6b62task&#xff0c;\u9759\u6001\u5bb9\u5668\u5bf9\u8c61\u4ecd\u7136\u4fdd\u7559&#xff0c;\u4e0d\u4f1a\u88ab\u5220\u9664\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>11\u3001\u5220\u9664\u5bb9\u5668<\/h4>\n<li>\u524d\u63d0&#xff1a;\u5fc5\u987b\u5148\u505c\u6b62\u6216\u5220\u9664task&#xff08;kill&#xff09;&#xff0c;\u624d\u80fd\u5220\u9664\u9759\u6001\u5bb9\u5668\u3002<\/li>\n<li>\u5148\u5220\u9664task&#xff1a;ctr task delete \u5bb9\u5668\u540d<\/li>\n<li>\u518d\u5220\u9664\u9759\u6001\u5bb9\u5668&#xff1a;ctr container delete \u5bb9\u5668\u540d&#xff0c;\u7b80\u5199ctr c rm \u5bb9\u5668\u540d<\/li>\n<li>\u9a8c\u8bc1&#xff1a;ctr container ls\u786e\u8ba4\u5bb9\u5668\u5df2\u7ecf\u6d88\u5931\u3002<\/li>\n<hr \/>\n<h4>\u7b80\u7b54\u80cc\u8bf5\u7cbe\u7b80\u7248&#xff08;\u8003\u8bd5\u7b54\u9898&#xff09;<\/h4>\n<p>ctr &#8211;help\u67e5\u770b\u603b\u5e2e\u52a9&#xff1b;ctr container &#8211;help\u5bb9\u5668\u5e2e\u52a9&#xff1b;ctr run\u53ef\u4e00\u6b65\u521b\u5efa\u5e76\u8fd0\u884c\u5bb9\u5668\u3002<\/p>\n<p>ctr c ls\u67e5\u770b\u9759\u6001\u5bb9\u5668&#xff0c;\u9759\u6001\u5bb9\u5668\u53ea\u662f\u8d44\u6e90\u914d\u7f6e&#xff0c;\u4e0d\u4ee3\u8868\u8fdb\u7a0b\u8fd0\u884c\u3002<\/p>\n<p>ctr t ls\u67e5\u770btask\u4efb\u52a1&#xff0c;task\u4ee3\u8868\u5bb9\u5668\u5185\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002<\/p>\n<p>ctr container create\u521b\u5efa\u9759\u6001\u5bb9\u5668&#xff0c;\u4e0d\u4f1a\u542f\u52a8\u8fdb\u7a0b\u3002<\/p>\n<p>ctr task start -d\u542f\u52a8\u9759\u6001\u5bb9\u5668\u7684task&#xff0c;\u8ba9\u5bb9\u5668\u8fdb\u7a0b\u8fd0\u884c\u3002<\/p>\n<p>ctr task exec\u8fdb\u5165\u5bb9\u5668&#xff0c;&#8211;exec-id\u5fc5\u987b\u6307\u5b9a\u552f\u4e00\u6807\u8bc6\u3002<\/p>\n<p>ctr run -d\u4e00\u6b65\u521b\u5efa\u5e76\u542f\u52a8\u5bb9\u5668&#xff1b;&#8211;net-host\u4f7f\u7528\u4e3b\u673a\u7f51\u7edc\u3002<\/p>\n<p>ctr task pause\u6682\u505c\u5bb9\u5668\u8fdb\u7a0b&#xff0c;\u72b6\u6001PAUSED\u3002<\/p>\n<p>ctr task resume\u6062\u590d\u6682\u505c\u7684\u5bb9\u5668\u3002<\/p>\n<p>ctr task kill\u7ec8\u6b62\u5bb9\u5668\u8fdb\u7a0b&#xff0c;task\u72b6\u6001\u53d8\u4e3aSTOPPED&#xff0c;\u4f46\u9759\u6001\u5bb9\u5668\u8fd8\u5b58\u5728\u3002<\/p>\n<p>\u5220\u9664\u5bb9\u5668\u9700\u8981\u5148\u5220\u9664task&#xff0c;\u518d\u5220\u9664\u9759\u6001\u5bb9\u5668&#xff1b;ctr c rm\u5220\u9664\u9759\u6001\u5bb9\u5668\u3002<\/p>\n<h4>\u9ad8\u9891\u8003\u70b9\u4e00\u53e5\u8bdd<\/h4>\n<p>containerd\u628a\u5bb9\u5668\u62c6\u6210\u4e24\u5c42&#xff1a;container\u9759\u6001\u8d44\u6e90&#xff0c;task\u52a8\u6001\u8fd0\u884c\u8fdb\u7a0b\u3002docker run\u662f\u4e00\u6b65\u5c01\u88c5&#xff1b;ctr\u9700\u8981\u5206\u5f00\u64cd\u4f5c&#xff0c;\u5148create&#xff0c;\u518dtask start&#xff0c;\u5220\u9664\u4e5f\u8981\u5148\u5220task&#xff0c;\u518d\u5220container\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001Containerd\u4f7f\u7528\u79c1\u6709\u5bb9\u5668\u955c\u50cf\u4ed3\u5e93Harbor<\/h3>\n<h3>\u516d\u3001Containerd NameSpace\u7ba1\u7406<\/h3>\n<p>\u6838\u5fc3\u4f5c\u7528&#xff1a;namespace\u7528\u6765\u9694\u79bb\u5bb9\u5668\u3001\u955c\u50cf\u3001\u4efb\u52a1\u8d44\u6e90&#xff0c;\u4e0d\u540c\u547d\u540d\u7a7a\u95f4\u5185\u7684\u8d44\u6e90\u4e92\u76f8\u4e0d\u53ef\u89c1\u3002<\/p>\n<h4>1\u3001\u5217\u51fa\u5df2\u6709namespace<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr namespace ls<\/p>\n<li>\n<p>containerd\u9ed8\u8ba4\u5de5\u4f5c\u5728default\u547d\u540d\u7a7a\u95f4<\/p>\n<\/li>\n<li>\n<p>\u5f53\u4e3b\u673a\u5b89\u88c5docker\u65f6&#xff0c;docker\u5e95\u5c42\u4f7f\u7528containerd&#xff0c;docker\u9ed8\u8ba4\u547d\u540d\u7a7a\u95f4moby\u3002<\/p>\n<p>\u8003\u70b9&#xff1a;\u5728docker\u673a\u5668\u4e0a\u6267\u884cctr ns ls\u770b\u5230\u7684\u662fmoby&#xff0c;\u4e0d\u662fdefault\u3002<\/p>\n<\/li>\n<h4>2\u3001\u521b\u5efanamespace<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr namespace create \u547d\u540d\u7a7a\u95f4\u540d\u79f0<\/p>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ctr namespace create myns<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ctr namespace create testns<\/span><\/p>\n<p>\u6267\u884c\u521b\u5efa\u540e&#xff0c;\u518dctr namespace ls\u5c31\u80fd\u770b\u5230\u65b0\u589e\u7684\u547d\u540d\u7a7a\u95f4\u3002<\/p>\n<h4>3\u3001\u5220\u9664namespace<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr namespace rm \u547d\u540d\u7a7a\u95f4\u540d\u79f0<\/p>\n<p>\u26a0\ufe0f\u91cd\u8981\u524d\u63d0&#xff1a;\u547d\u540d\u7a7a\u95f4\u5185\u90e8\u6240\u6709\u955c\u50cf\u3001\u5bb9\u5668\u3001task\u4efb\u52a1\u5fc5\u987b\u5168\u90e8\u6e05\u7406\u5e72\u51c0&#xff0c;\u5426\u5219\u65e0\u6cd5\u5220\u9664\u3002<\/p>\n<h4>4\u3001\u67e5\u770b\u6307\u5b9anamespace\u4e2d\u7684\u955c\u50cf<\/h4>\n<p>-n \u53c2\u6570\u7528\u6765\u6307\u5b9a\u547d\u540d\u7a7a\u95f4<\/p>\n<p>\u547d\u4ee4&#xff1a;ctr -n \u547d\u540d\u7a7a\u95f4\u540d\u79f0 images ls<\/p>\n<p>\u4e0d\u52a0-n\u9ed8\u8ba4\u64cd\u4f5cdefault\u547d\u540d\u7a7a\u95f4\u3002<\/p>\n<h4>5\u3001\u67e5\u770b\u6307\u5b9anamespace\u4e2d\u8fd0\u884c\u7684\u8fdb\u7a0b\u4efb\u52a1<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr -n \u547d\u540d\u7a7a\u95f4\u540d\u79f0 tasks ls<\/p>\n<p>\u67e5\u770b\u8be5\u547d\u540d\u7a7a\u95f4\u4e0btask&#xff08;\u5bb9\u5668\u8fd0\u884c\u8fdb\u7a0b&#xff09;&#xff0c;\u8f93\u51faTASK\u540d\u79f0\u3001PID\u3001\u72b6\u6001\u3002<\/p>\n<h4>6\u3001\u5728\u6307\u5b9anamespace\u4e0b\u8f7d\u5bb9\u5668\u955c\u50cf<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr -n \u547d\u540d\u7a7a\u95f4\u540d\u79f0 images pull \u955c\u50cf\u5b8c\u6574\u5730\u5740<\/p>\n<p>\u955c\u50cf\u53ea\u4f1a\u4e0b\u8f7d\u5230myns\u547d\u540d\u7a7a\u95f4&#xff0c;default\u547d\u540d\u7a7a\u95f4\u770b\u4e0d\u5230\u8fd9\u4e2a\u955c\u50cf\u3002<\/p>\n<h4>7\u3001\u5728\u6307\u5b9anamespace\u521b\u5efa\u9759\u6001\u5bb9\u5668<\/h4>\n<p>\u547d\u4ee4&#xff1a;ctr -n \u547d\u540d\u7a7a\u95f4\u540d\u79f0 create \u5b8c\u6574\u955c\u50cf\u540d \u65b0\u5bb9\u5668\u540d<\/p>\n<p>\u5728myns\u547d\u540d\u7a7a\u95f4\u521b\u5efa\u9759\u6001\u5bb9\u5668&#xff0c;\u6b64\u65f6\u5bb9\u5668\u8fdb\u7a0b\u8fd8\u672a\u542f\u52a8\u3002<\/p>\n<h4>8\u3001\u5728\u6307\u5b9anamespace\u542f\u52a8\u5bb9\u5668\u3001\u67e5\u770b\u5bb9\u5668\u4e0e\u4efb\u52a1<\/h4>\n<li>\u67e5\u770b\u8be5\u547d\u540d\u7a7a\u95f4\u4e0b\u9759\u6001\u5bb9\u5668&#xff1a;ctr -n \u547d\u540d\u7a7a\u95f4\u540d\u79f0 container ls<\/li>\n<li>\u542f\u52a8task&#xff08;\u8fd0\u884c\u5bb9\u5668\u8fdb\u7a0b&#xff09;&#xff1a;ctr -n \u547d\u540d\u7a7a\u95f4\u540d\u79f0 task start -d \u5bb9\u5668\u540d<\/li>\n<li>\u67e5\u770b\u8fd0\u884c\u4efb\u52a1&#xff1a;ctr -n \u547d\u540d\u7a7a\u95f4\u540d\u79f0 tasks ls&#xff0c;\u72b6\u6001\u53d8\u4e3aRUNNING\u3002<\/li>\n<hr \/>\n<h4>\u80cc\u8bf5\u7cbe\u7b80\u8003\u70b9<\/h4>\n<ul>\n<li>\n<p>ctr namespace ls\u5217\u51fa\u547d\u540d\u7a7a\u95f4&#xff1b;\u539f\u751fcontainerd\u9ed8\u8ba4default&#xff1b;docker\u4f7f\u7528moby\u547d\u540d\u7a7a\u95f4\u3002<\/p>\n<\/li>\n<li>\n<p>ctr namespace create xxx\u65b0\u5efa\u547d\u540d\u7a7a\u95f4\u3002<\/p>\n<\/li>\n<li>\n<p>ctr namespace rm xxx\u5220\u9664\u547d\u540d\u7a7a\u95f4&#xff0c;\u547d\u540d\u7a7a\u95f4\u5185\u8d44\u6e90\u6e05\u7a7a\u624d\u80fd\u5220\u9664\u3002<\/p>\n<\/li>\n<li>\n<p>-n\u5168\u5c40\u53c2\u6570&#xff0c;\u7528\u6765\u5207\u6362\u547d\u540d\u7a7a\u95f4\u3002<\/p>\n<\/li>\n<li>\n<p>\u6240\u6709\u955c\u50cf\u3001\u5bb9\u5668\u3001task\u64cd\u4f5c&#xff0c;\u5e26\u4e0a-n \u547d\u540d\u7a7a\u95f4\u540d&#xff0c;\u5c31\u4f1a\u5728\u5bf9\u5e94\u7684\u547d\u540d\u7a7a\u95f4\u6267\u884c\u3002<\/p>\n<\/li>\n<li>\n<p>\u8d44\u6e90\u9694\u79bb&#xff1a;A\u547d\u540d\u7a7a\u95f4\u7684\u955c\u50cf\/\u5bb9\u5668&#xff0c;\u5728B\u547d\u540d\u7a7a\u95f4\u65e0\u6cd5\u76f4\u63a5\u770b\u5230\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e03\u3001nerdctl \u5b9e\u8df5\u2013\u7ba1\u7406containerd<\/h3>\n<p>nerdctl&#xff1a;\u517c\u5bb9Docker\u8bed\u6cd5\u7684containerd\u5ba2\u6237\u7aef&#xff0c;\u7ba1\u7406containerd&#xff0c;\u547d\u4ee4\u98ce\u683c\u51e0\u4e4e\u548cdocker\u4e00\u81f4&#xff1b;nerdctl\u9ed8\u8ba4\u4f7f\u7528moby\u547d\u540d\u7a7a\u95f4\u3002<\/p>\n<h4>1\u3001nerdctl\u5b89\u88c5<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111752-6aae6f60a07e8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\n<p>\u4e0b\u8f7dnerdctl\u4e8c\u8fdb\u5236\u5305&#xff0c;\u89e3\u538b\u653e\u5230\/usr\/bin&#xff0c;\u8d4b\u4e88\u6267\u884c\u6743\u9650\u3002<\/p>\n<\/li>\n<li>\n<p>\u914d\u5957nerdctl\u9700\u8981containerd\u73af\u5883\u3002<\/p>\n<\/li>\n<li>\n<p>\u53ef\u9009&#xff1a;\u5b89\u88c5bash\u547d\u4ee4\u8865\u5168\u811a\u672c&#xff0c;\u5b9e\u73b0\u547d\u4ee4\u81ea\u52a8\u63d0\u793a\u3002<\/p>\n<\/li>\n<li>\n<p>\u5e38\u89c1\u62a5\u9519&#xff1a;bash: nerdctl: command not found<\/p>\n<p>\u89e3\u51b3&#xff1a;\u68c0\u67e5\u89e3\u538b\u8def\u5f84\u3001\u73af\u5883\u53d8\u91cf&#xff0c;\u6216\u8005\u91cd\u65b0source\u8865\u5168\u811a\u672c\u3002<\/p>\n<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111752-6aae6f60ea507.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u955c\u50cf\u52a0\u901f\u914d\u7f6e&#xff1a;\u4fee\u6539\/etc\/containerd\/config.toml&#xff0c;\u5728\u914d\u7f6e\u6587\u4ef6\u6dfb\u52a0\u955c\u50cf\u4ed3\u5e93\u5730\u5740&#xff08;\u534e\u4e3a\u4e91\u955c\u50cf\u6e90\u7b49&#xff09;&#xff0c;\u91cd\u542fcontainerd\u670d\u52a1\u3002<\/li>\n<h4>2\u3001nerdctl\u7ba1\u7406\u955c\u50cf<\/h4>\n<li>\n<p>nerdctl images&#061;nerdctl image ls&#xff1a;\u67e5\u770b\u672c\u5730\u955c\u50cf\u3002<\/p>\n<\/li>\n<li>\n<p>nerdctl image pull &#xff1a;\u62c9\u53d6\u955c\u50cf&#xff0c;\u4ece\u955c\u50cf\u4ed3\u5e93\u4e0b\u8f7d\u955c\u50cf\u5230\u672c\u5730\u3002<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nerdctl image pull busybox<\/span><\/p>\n<\/li>\n<li>\n<p>nerdctl image rm \u955c\u50cf\u540d&#xff1a;\u5220\u9664\u672c\u5730\u65e0\u7528\u955c\u50cf\u3002<\/p>\n<\/li>\n<li>\n<p>nerdctl tag  \u6e90\u955c\u50cf\u540d[:\u6807\u7b7e]   \u65b0\u955c\u50cf\u540d[:\u6807\u7b7e]&#xff1a;\u7ed9\u955c\u50cf\u6253\u6807\u7b7e\u3002<\/p>\n<\/li>\n<li>\n<p>nerdctl image save   -o  \u955c\u50cf\u540d  \u538b\u7f29\u5305\u540d &#xff1a;\u5c06\u672c\u5730\u955c\u50cf\u5bfc\u51fa\u4e3atar\u538b\u7f29\u5305\u3002&#8212;&#8212;image\u53ef\u7701\u7565<\/p>\n<\/li>\n<li>\n<p>**nerdctl image load  -i  tar\u5305\u540d ** &#xff1a;\u628atar\u955c\u50cf\u5305\u5bfc\u5165\u672c\u5730\u955c\u50cf\u5e93\u3002<\/p>\n<\/li>\n<li>\n<p>nerdctl image history  \u955c\u50cf\u540d &#xff1a;\u67e5\u770b\u955c\u50cf\u6784\u5efa\u65f6\u7684\u5386\u53f2\u547d\u4ee4\u5c42\u6b21\u7ed3\u6784\u3002<\/p>\n<\/li>\n<li>\n<p>**nerdctl image inspect  \u955c\u50cf\u540d **&#xff1a;\u67e5\u770b\u955c\u50cf\u8be6\u7ec6\u4fe1\u606f&#xff08;json\u683c\u5f0f&#xff0c;\u5305\u542b\u67b6\u6784\u3001\u73af\u5883\u53d8\u91cf\u3001\u5206\u5c42\u4fe1\u606f\u7b49&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>nerdctl image prune &#8211;all &#8211;force&#xff1a;\u5220\u9664\u6240\u6709\u672a\u4f7f\u7528\u955c\u50cf&#xff0c;&#8211;force\u4e0d\u5f39\u7a97\u786e\u8ba4\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;<\/p>\n<p>\u2013all&#xff08;\u7b80\u5199 -a&#xff09;&#xff1a;\u4e0d\u4ec5\u6e05\u7406\u60ac\u7a7a\u955c\u50cf&#xff0c;\u6240\u6709\u4e0d\u518d\u88ab\u4efb\u4f55\u5bb9\u5668\u4f7f\u7528\u7684\u955c\u50cf\u5168\u90e8\u5220\u9664<\/p>\n<ul>\n<li>\u4e0d\u52a0 &#8211;all&#xff1a;\u53ea\u5220\u60ac\u7a7a\u955c\u50cf&#xff08;\u6807\u7b7e&#xff0c;\u6784\u5efa\u955c\u50cf\u5269\u4e0b\u7684\u5783\u573e\u788e\u7247&#xff09;<\/li>\n<li>\u52a0\u4e0a &#8211;all&#xff1a;\u8303\u56f4\u6269\u5927&#xff01;\u6240\u6709\u6ca1\u88ab\u5bb9\u5668\u4f7f\u7528\u7684\u955c\u50cf\u5168\u90fd\u5220\u6389&#xff0c;\u5305\u62ec\u4f60\u81ea\u5df1 pull \u4e0b\u6765\u3001\u6709\u540d\u5b57\u6709\u6807\u7b7e&#xff0c;\u53ea\u662f\u73b0\u5728\u6ca1\u6709\u5bb9\u5668\u5728\u7528\u7684\u955c\u50cf\u3002<\/li>\n<\/ul>\n<p>\u2013force&#xff08;\u7b80\u5199 -f&#xff09;&#xff1a;\u8df3\u8fc7\u4ea4\u4e92\u5f0f\u786e\u8ba4\u63d0\u793a&#xff0c;\u76f4\u63a5\u5220\u9664&#xff0c;\u4e0d\u7528\u624b\u52a8\u8f93\u5165 y \u786e\u8ba4<\/p>\n<\/li>\n<h4>3\u3001nerdctl\u7ba1\u7406\u5bb9\u5668<\/h4>\n<h5>3.1 ls \u67e5\u770b\u5bb9\u5668<\/h5>\n<li>\n<p>nerdctl container ls&#xff08;\u7b80\u5199 nerdctl ps &#xff09;&#xff1a;\u53ea\u67e5\u770b\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668<\/p>\n<\/li>\n<li>\n<p>nerdctl container ls -a&#xff08;\u7b80\u5199 nerdctl ps -a &#xff09;&#xff1a;\u67e5\u770b\u5168\u90e8\u5bb9\u5668&#xff08;\u8fd0\u884c&#043;\u505c\u6b62Exited&#xff09;<\/p>\n<p>\u53c2\u6570 -a &#061; all\u3002<\/p>\n<\/li>\n<p>\u5e38\u7528\u9009\u9879&#xff1a;<\/p>\n<ul>\n<li>-a, &#8211;all&#xff1a;\u663e\u793a\u6240\u6709\u5bb9\u5668&#xff0c;\u9ed8\u8ba4\u4ec5\u5c55\u793a\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668<\/li>\n<li>-f, &#8211;filter strings&#xff1a;\u6839\u636e\u6307\u5b9a\u6761\u4ef6\u8fc7\u6ee4\u5339\u914d\u5bb9\u5668<\/li>\n<li>&#8211;format string&#xff1a;\u4f7f\u7528 Go \u6a21\u677f\u683c\u5f0f\u5316\u8f93\u51fa\u5185\u5bb9&#xff0c;\u793a\u4f8b&#xff1a;&#039;{{json .}}&#039;\u3001wide<\/li>\n<\/ul>\n<h5>3.2 run \u521b\u5efa\u5e76\u8fd0\u884c\u5bb9\u5668<\/h5>\n<p>\u8bed\u6cd5&#xff1a;nerdctl run [\u53c2\u6570] \u955c\u50cf\u540d [\u547d\u4ee4] [\u53c2\u6570]<\/p>\n<p>\u200b           \u7b49\u4ef7\u7b80\u5199&#xff1a;nerdctl container run<\/p>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;localhost ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># nerdctl run -it ubuntu<\/span><\/p>\n<ul>\n<li>-i&#xff1a;\u4fdd\u6301\u6807\u51c6\u8f93\u5165\u6253\u5f00&#xff1b;-t\u5206\u914d\u4f2a\u7ec8\u7aef&#xff1b;\u7ec4\u5408&#061;&#061;-it\u7528\u4e8e\u4ea4\u4e92\u5f0f\u8fdb\u5165\u5bb9\u5668&#061;&#061;\u3002<\/li>\n<li>\u4e0d\u52a0-it\u542f\u52a8ubuntu\/bash\u955c\u50cf&#xff1a;bash\u65e0\u7ec8\u7aef&#xff0c;\u542f\u52a8\u7acb\u523b\u9000\u51fa&#xff0c;\u5bb9\u5668\u72b6\u6001Exited(0)\u3002<\/li>\n<li>\u5e38\u7528\u53c2\u6570&#xff1a;\n<ul>\n<li>&#8211;cpu-shares uint&#xff1a;CPU \u4efd\u989d&#xff08;\u76f8\u5bf9\u6743\u91cd&#xff0c;\u7528\u4e8e CPU \u8d44\u6e90\u5206\u914d&#xff09;<\/li>\n<li>&#8211;cpus float&#xff1a;\u8bbe\u7f6e\u53ef\u7528 CPU \u6838\u5fc3\u6570\u91cf<\/li>\n<li>-d, &#8211;detach&#xff1a;\u540e\u53f0\u8fd0\u884c\u5bb9\u5668&#xff0c;\u5e76\u6253\u5370\u5bb9\u5668 ID<\/li>\n<li>&#8211;dns strings&#xff1a;\u81ea\u5b9a\u4e49 DNS \u670d\u52a1\u5668<\/li>\n<li>-e, &#8211;env stringArray&#xff1a;\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/li>\n<li>-h, &#8211;hostname string&#xff1a;\u8bbe\u7f6e\u5bb9\u5668\u4e3b\u673a\u540d<\/li>\n<li>-i, &#8211;interactive&#xff1a;\u4fdd\u6301\u6807\u51c6\u8f93\u5165\u6253\u5f00&#xff0c;\u5373\u4f7f\u6ca1\u6709\u9644\u7740\u7ec8\u7aef<\/li>\n<li>&#8211;ip string&#xff1a;\u4e3a\u5bb9\u5668\u5206\u914d IPv4 \u5730\u5740<\/li>\n<li>&#8211;mac-address string&#xff1a;\u4e3a\u5bb9\u5668\u6307\u5b9a MAC \u5730\u5740<\/li>\n<li>-m, &#8211;memory string&#xff1a;\u8bbe\u7f6e\u5185\u5b58\u8d44\u6e90\u9650\u5236<\/li>\n<li>&#8211;name string&#xff1a;\u7ed9\u5bb9\u5668\u6307\u5b9a\u540d\u79f0<\/li>\n<li>&#8211;net \/ &#8211;network strings&#xff1a;\u5c06\u5bb9\u5668\u63a5\u5165\u7f51\u7edc&#xff0c;\u53ef\u9009\u6a21\u5f0f bridge \/ host \/ none \/ container:&#xff0c;\u9ed8\u8ba4\u4e3a bridge \u7f51\u6865\u6a21\u5f0f<\/li>\n<li>&#8211;privileged&#xff1a;\u7ed9\u5bb9\u5668\u6269\u5c55\u9ad8\u7ea7\u6743\u9650<\/li>\n<li>&#8211;pull string&#xff1a;\u8fd0\u884c\u5bb9\u5668\u524d\u62c9\u53d6\u955c\u50cf&#xff0c;\u53ef\u9009always\/missing\/never&#xff0c;\u9ed8\u8ba4missing&#xff08;\u672c\u5730\u6ca1\u6709\u955c\u50cf\u624d\u62c9&#xff09;<\/li>\n<li>&#8211;restart string&#xff1a;\u5bb9\u5668\u9000\u51fa\u65f6\u7684\u91cd\u542f\u7b56\u7565&#xff0c;\u53ef\u9009no\/always\/on-failure:n\/unless-stopped&#xff1b;\u9ed8\u8ba4no<\/li>\n<li>&#8211;rm&#xff1a;\u5bb9\u5668\u9000\u51fa\u540e\u81ea\u52a8\u5220\u9664\u5bb9\u5668<\/li>\n<li>&#8211;runtime string&#xff1a;\u4e3a\u6b64\u5bb9\u5668\u6307\u5b9a\u8fd0\u884c\u65f6<\/li>\n<li>&#8211;stop-signal string&#xff1a;\u505c\u6b62\u5bb9\u5668\u4f7f\u7528\u7684\u4fe1\u53f7&#xff0c;\u9ed8\u8ba4 SIGTERM<\/li>\n<li>&#8211;stop-timeout&#xff1a;\u505c\u6b62\u5bb9\u5668\u7684\u8d85\u65f6\u65f6\u95f4&#xff08;\u5355\u4f4d\u79d2&#xff09;<\/li>\n<li>-t, &#8211;tty&#xff1a;\u5206\u914d\u4e00\u4e2a\u4f2a\u7ec8\u7aef<\/li>\n<li>-v, &#8211;volume&#xff1a;\u6302\u8f7d\u6570\u636e\u5377 \/ \u7ed1\u5b9a\u5bbf\u4e3b\u673a\u76ee\u5f55<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>3.3 rm \u5220\u9664\u5bb9\u5668<\/h5>\n<p>nerdctl container <span class=\"token function\">rm<\/span> \u5bb9\u5668ID\/\u5bb9\u5668\u540d<\/p>\n<p>\u53ea\u80fd\u5220\u9664\u505c\u6b62\u72b6\u6001Exited\u5bb9\u5668&#xff1b;\u6b63\u5728\u8fd0\u884c\u5bb9\u5668\u9700\u8981\u52a0 -f \u5f3a\u5236\u5220\u9664&#xff1a;nerdctl rm -f<\/p>\n<h5>3.4 prune \u6279\u91cf\u6e05\u7406\u672a\u8fd0\u884c\u7684\u5bb9\u5668<\/h5>\n<p>nerdctl container prune <span class=\"token parameter variable\">&#8211;force<\/span><\/p>\n<p>\u5220\u9664\u6240\u6709Exited\u505c\u6b62\u72b6\u6001\u5bb9\u5668&#xff0c;&#8211;force\u8df3\u8fc7\u786e\u8ba4\u3002<\/p>\n<h5>3.5 rename \u4fee\u6539\u5bb9\u5668\u540d\u79f0<\/h5>\n<p>nerdctl container <span class=\"token function\">rename<\/span> \u65e7\u540d\u5b57 \u65b0\u540d\u5b57<\/p>\n<h5>3.6 stop \/ start \/ restart \u5bb9\u5668\u542f\u505c<\/h5>\n<ul>\n<li>nerdctl container stop \u5bb9\u5668\u540d&#xff1a;\u4f18\u96c5\u505c\u6b62\u8fd0\u884c\u4e2d\u7684\u5bb9\u5668<\/li>\n<li>nerdctl container start  \u5bb9\u5668\u540d&#xff1a;\u542f\u52a8\u5df2\u7ecf\u521b\u5efa\u3001\u5904\u4e8e\u505c\u6b62\u72b6\u6001\u7684\u5bb9\u5668<\/li>\n<li>nerdctl container restart \u5bb9\u5668\u540d&#xff1a;\u91cd\u542f\u5bb9\u5668&#xff08;\u5148stop\u518dstart&#xff09;<\/li>\n<\/ul>\n<h5>3.7 pause \/ unpause \u6682\u505c\/\u6062\u590d\u5bb9\u5668<\/h5>\n<ul>\n<li>nerdctl container pause \u5bb9\u5668\u540d&#xff1a;\u6682\u505c\u5bb9\u5668\u5185\u6240\u6709\u8fdb\u7a0b&#xff0c;\u5bb9\u5668\u4e0d\u4f1a\u505c\u6b62&#xff0c;\u53ea\u662f\u51bb\u7ed3\u8fdb\u7a0b<\/li>\n<li>nerdctl container unpause \u5bb9\u5668\u540d&#xff1a;\u89e3\u9664\u6682\u505c&#xff0c;\u6062\u590d\u5bb9\u5668\u8fdb\u7a0b\u8fd0\u884c<\/li>\n<\/ul>\n<h5>3.8 kill \u5f3a\u5236\u6740\u6b7b\u5bb9\u5668<\/h5>\n<p>nerdctl container kill  \u5bb9\u5668\u540d &#xff1a;\u76f4\u63a5\u53d1\u9001SIGKILL\u4fe1\u53f7\u5f3a\u5236\u7ec8\u6b62\u5bb9\u5668\u8fdb\u7a0b&#xff0c;\u7acb\u523b\u505c\u6b62\u5bb9\u5668\u3002<\/p>\n<h5>3.9 exec \u5728\u8fd0\u884c\u5bb9\u5668\u5185\u6267\u884c\u547d\u4ee4<\/h5>\n<p>nerdctl container <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-it<\/span> \u5bb9\u5668\u540d <span class=\"token function\">bash<\/span><\/p>\n<p>\u53ea\u80fd\u5bf9\u6b63\u5728Up\u8fd0\u884c\u7684\u5bb9\u5668\u4f7f\u7528&#xff0c;\u7528\u6765\u8fdb\u5165\u5bb9\u5668\u7ec8\u7aef\u3002<\/p>\n<h5>3.10 cp \u5bb9\u5668\u4e0e\u5bbf\u4e3b\u673a\u4e4b\u95f4\u62f7\u8d1d\u6587\u4ef6<\/h5>\n<p><span class=\"token comment\">#\u5bbf\u4e3b\u673a\u6587\u4ef6\u4f20\u5230\u5bb9\u5668<\/span><br \/>\nnerdctl container <span class=\"token function\">cp<\/span> \u5bbf\u4e3b\u673a\u8def\u5f84 \u5bb9\u5668\u540d:\u5bb9\u5668\u5185\u8def\u5f84<br \/>\n<span class=\"token comment\">#\u5bb9\u5668\u6587\u4ef6\u62f7\u8d1d\u5230\u5bbf\u4e3b\u673a<\/span><br \/>\nnerdctl container <span class=\"token function\">cp<\/span> \u5bb9\u5668\u540d:\u5bb9\u5668\u5185\u8def\u5f84 \u5bbf\u4e3b\u673a\u8def\u5f84<\/p>\n<h5>3.11 inspect \u67e5\u770b\u5bb9\u5668\u8be6\u7ec6\u4fe1\u606f<\/h5>\n<p>nerdctl container inspect \u5bb9\u5668\u540d\/ID<\/p>\n<p>\u8f93\u51fajson&#xff0c;\u5305\u542b\u5bb9\u5668IP\u3001\u7aef\u53e3\u3001\u6302\u8f7d\u3001\u72b6\u6001\u3001\u547d\u540d\u7a7a\u95f4\u7b49\u5b8c\u6574\u4fe1\u606f\u3002<\/p>\n<h5>3.12 logs \u67e5\u770b\u5bb9\u5668\u65e5\u5fd7<\/h5>\n<p>nerdctl container logs \u5bb9\u5668\u540d<\/p>\n<p>\u67e5\u770b\u5bb9\u5668\u63a7\u5236\u53f0\u8f93\u51fa\u65e5\u5fd7\u3002<\/p>\n<h5>3.13 \u67e5\u770b\u5bbf\u4e3b\u673a\u548c\u5bb9\u5668\u4e4b\u95f4\u7aef\u53e3\u6620\u5c04\u5173\u7cfb<\/h5>\n<p>nerdctl container port \u5bb9\u5668\u540d\/ID<\/p>\n<p>\u8003\u70b9&#xff1a;\u5982\u679c\u5bb9\u5668\u540d\u79f0\u524d\u7f00\u5339\u914d\u591a\u4e2a\u5bb9\u5668&#xff0c;\u4f1a\u62a5\u9519multiple IDs found with provided prefix&#xff0c;\u89e3\u51b3&#xff1a;\u4f7f\u7528\u5b8c\u6574\u5bb9\u5668ID\u3002<\/p>\n<h5>3.14 commit \u5c06\u5bb9\u5668\u63d0\u4ea4\u4e3a\u955c\u50cf<\/h5>\n<p>nerdctl container commit \u5bb9\u5668ID \u65b0\u955c\u50cf\u540d<\/p>\n<p>\u628a\u5f53\u524d\u5bb9\u5668\u7684\u4fee\u6539&#xff0c;\u6253\u5305\u751f\u6210\u65b0\u955c\u50cf\u3002<\/p>\n<hr \/>\n<h5>\u8003\u8bd5\u5bf9\u6bd4\u91cd\u70b9&#xff08;ctr vs nerdctl&#xff09;<\/h5>\n<li>ctr&#xff1a;containerd\u539f\u751f\u5ba2\u6237\u7aef&#xff0c;\u9ed8\u8ba4default\u547d\u540d\u7a7a\u95f4&#xff1b;\u521b\u5efa\u5bb9\u5668\u5206\u4e24\u6b65&#xff1a;container create &#043; task start&#xff1b;\u5220\u9664\u5fc5\u987b\u5148kill task\u3001rm task&#xff0c;\u518drm container&#xff0c;\u6ca1\u6709\u4e00\u952e\u5f3a\u5236\u5220\u9664\u3002<\/li>\n<li>nerdctl&#xff1a;docker\u98ce\u683c\u5ba2\u6237\u7aef&#xff0c;\u9ed8\u8ba4moby\u547d\u540d\u7a7a\u95f4&#xff1b;\u4e00\u6761run\u547d\u4ee4\u76f4\u63a5\u521b\u5efa\u5e76\u542f\u52a8\u5bb9\u5668&#xff1b;rm -f\u53ef\u4ee5\u4e00\u952e\u5f3a\u5236\u5220\u9664\u8fd0\u884c\u5bb9\u5668\u3002<\/li>\n<p>\u547d\u540d\u7a7a\u95f4\u9694\u79bb&#xff1a;\u4e0d\u540c\u547d\u540d\u7a7a\u95f4\u8d44\u6e90\u4e92\u76f8\u4e0d\u53ef\u89c1&#xff0c;\u64cd\u4f5c\u8de8\u547d\u540d\u7a7a\u95f4\u8d44\u6e90&#xff0c;\u9700\u8981\u7528 -n \u6307\u5b9a\u547d\u540d\u7a7a\u95f4\u3002<\/p>\n<hr \/>\n<h4>4\u3001nerdctl \u7ba1\u7406\u7f51\u7edc<\/h4>\n<h5>4.1 \u7f51\u7edc\u57fa\u7840\u539f\u7406<\/h5>\n<li>containerd\u4e2d\u7684\u7f51\u7edc\u4e0eDocker\u7c7b\u4f3c&#xff0c;\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u9ed8\u8ba4\u90fd\u662f\u865a\u62df\u63a5\u53e3\u3002<\/li>\n<li>\u4f7f\u7528nerdctl\u521b\u5efa\u5bb9\u5668\u65f6&#xff0c;\u4f1a\u81ea\u52a8\u521b\u5efa\u540d\u79f0\u4e3abridge\u7684Linux\u7f51\u6865&#xff0c;\u7f51\u6865\u5185\u90e8\u63a5\u53e3\u4e3anerdctl0\u3002<\/li>\n<li>\u5e95\u5c42\u4f7f\u7528**Linux\u865a\u62df\u7f51\u7edc\u6280\u672fveth pair&#xff08;\u4e00\u5bf9\u865a\u62df\u7f51\u5361&#xff09;&#xff0c;\u5728\u5bbf\u4e3b\u673a\u548c\u5bb9\u5668\u5185\u5206\u522b\u521b\u5efa\u865a\u62df\u63a5\u53e3&#xff0c;\u5b9e\u73b0\u4e24\u7aef\u8fde\u901a**\u3002<\/li>\n<li>containerd\u9884\u5148\u6307\u5b9anerdctl0\u63a5\u53e3\u7684IP\u5730\u5740\u548c\u5b50\u7f51\u63a9\u7801&#xff0c;\u5bbf\u4e3b\u673a\u548c\u5bb9\u5668\u4e4b\u95f4\u4f9d\u9760\u7f51\u6865\u4e92\u76f8\u901a\u4fe1\u3002<\/li>\n<h5>4.2 \u5b9e\u64cd\u6848\u4f8b&#xff1a;\u67e5\u770b\u5bb9\u5668\u7f51\u5361\u4fe1\u606f<\/h5>\n<li>\u540e\u53f0\u542f\u52a8busybox\u5bb9\u5668\u547d\u4ee4&#xff1a;nerdctl run -d busybox &#8212; sleep infinity<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111753-6aae6f6140c46.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2013 sleep infinity&#xff1a;\u5bb9\u5668\u5185\u6267\u884c\u547d\u4ee4&#xff0c;\u65e0\u9650\u7761\u7720&#xff0c;\u8ba9\u5bb9\u5668\u4fdd\u6301\u6301\u7eed\u8fd0\u884c\u4e0d\u9000\u51fa\u3002<\/p>\n<li>\n<p>nerdctl container ls&#xff1a;\u67e5\u770b\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668\u3002<\/p>\n<\/li>\n<li>\n<p>nerdctl exec \u5bb9\u5668\u540d  \u2013  ip a&#xff1a;\u8fdb\u5165\u5bb9\u5668\u67e5\u770b\u7f51\u5361\u3002&#8212;-\u4e2d\u95f4\u4e00\u5b9a\u8981\u7a7a\u683c<\/p>\n<ul>\n<li>\u5bb9\u5668\u5185\u7f51\u5361\u683c\u5f0f&#xff1a;eth0&#064;if5&#xff0c;if5\u4ee3\u8868\u5bbf\u4e3b\u673a\u7aef\u5bf9\u5e94\u7684\u662f5\u53f7\u7f51\u5361\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5bbf\u4e3b\u673a\u6267\u884cip a\u67e5\u770b\u5bbf\u4e3b\u673a\u7f51\u5361\u3002<\/p>\n<ul>\n<li>\u5bbf\u4e3b\u673aveth\u7f51\u5361\u683c\u5f0f&#xff1a;veth790d9140&#064;if2&#xff0c;if2\u4ee3\u8868\u5bb9\u5668\u5185\u5bf9\u5e94\u7684\u662f2\u53f7\u7f51\u5361\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5bbf\u4e3b\u673a\u4e0a\u7684nerdctl0\u7f51\u6865\u5c31\u662f\u5bb9\u5668\u7684\u7f51\u5173&#xff0c;\u67e5\u770b\u7f51\u6865\u547d\u4ee4&#xff1a;ip addr show nerdctl0<\/p>\n<\/li>\n<h5>4.3 \u7f51\u7edc\u67e5\u8be2\u76f8\u5173\u547d\u4ee4<\/h5>\n<li>\n<p>nerdctl network ls&#xff1a;\u5217\u51fa\u6240\u6709\u7f51\u7edc&#xff0c;\u9ed8\u8ba4\u81ea\u5e26bridge\u3001host\u3001none\u4e09\u79cd\u7f51\u7edc\u3002<\/p>\n<\/li>\n<li>\n<p>nerdctl network inspect bridge&#xff1a;\u67e5\u770bbridge\u7f51\u7edc\u8be6\u7ec6\u4fe1\u606f&#xff0c;\u53ef\u67e5\u770b\u5b50\u7f51subnet\u3001\u7f51\u5173gateway\u3002<\/p>\n<\/li>\n<li>\n<p>brctl show&#xff1a;\u67e5\u770bLinux\u7f51\u6865nerdctl0\u4ee5\u53ca\u7f51\u6865\u63a5\u5165\u7684veth\u7aef\u53e3\u4fe1\u606f\u3002<\/p>\n<p>brctl\u4f7f\u7528\u524d\u9700\u8981\u5b89\u88c5&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111753-6aae6f615a04e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<h5>4.4 nerdctl network\u5b50\u547d\u4ee4<\/h5>\n<li>create&#xff1a;\u521b\u5efa\u81ea\u5b9a\u4e49\u7f51\u7edc<\/li>\n<li>inspect&#xff1a;\u67e5\u770b\u4e00\u4e2a\u6216\u591a\u4e2a\u7f51\u7edc\u7684\u8be6\u7ec6\u4fe1\u606f<\/li>\n<li>ls&#xff1a;\u5217\u51fa\u6240\u6709\u7f51\u7edc<\/li>\n<li>prune&#xff1a;\u6e05\u7406\u6240\u6709\u672a\u88ab\u4f7f\u7528\u7684\u7f51\u7edc<\/li>\n<li>rm&#xff1a;\u5220\u9664\u6307\u5b9a\u7f51\u7edc<\/li>\n<li>\u2013help&#xff1a;\u67e5\u770bnetwork\u6a21\u5757\u5e2e\u52a9\u6587\u6863<\/li>\n<hr \/>\n<h4>5\u3001nerdctl\u7ba1\u7406\u5b58\u50a8<\/h4>\n<h5>5.1 nerdctl volume \u5b50\u547d\u4ee4<\/h5>\n<li>\n<p>create&#xff1a;\u521b\u5efa\u6570\u636e\u5377<\/p>\n<\/li>\n<li>\n<p>inspect&#xff1a;\u67e5\u770b\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u636e\u5377\u7684\u8be6\u7ec6\u4fe1\u606f<\/p>\n<\/li>\n<li>\n<p>ls&#xff1a;\u5217\u51fa\u6240\u6709\u6570\u636e\u5377<\/p>\n<\/li>\n<li>\n<p>prune&#xff1a;\u5220\u9664\u6240\u6709\u672a\u4f7f\u7528\u7684\u672c\u5730\u6570\u636e\u5377<\/p>\n<\/li>\n<li>\n<p>rm&#xff1a;\u5220\u9664\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u636e\u5377<\/p>\n<\/li>\n<li>\n<p>-h, &#8211;help&#xff1a;\u67e5\u770bvolume\u6a21\u5757\u5e2e\u52a9\u6587\u6863<\/p>\n<p>\u8865\u5145&#xff1a;\u53ef\u4ee5\u4f7f\u7528nerdctl &#8211;help\u67e5\u770b\u5168\u5c40\u53c2\u6570&#xff0c;\u4f8b\u5982&#8211;namespace\u3001&#8211;snapshotter\u3001&#8211;cgroup-manager<\/p>\n<\/li>\n<h5>5.2 \u6570\u636e\u6301\u4e45\u5316&#xff1a;-v\u6302\u8f7d\u9009\u9879<\/h5>\n<li>\n<p>nerdctl \u521b\u5efa\u5bb9\u5668\u65f6&#xff0c;\u4f7f\u7528-v\u9009\u9879&#xff0c;\u53ef\u4ee5**\u5c06\u5bbf\u4e3b\u673a\u672c\u5730\u76ee\u5f55\u6302\u8f7d\u5230\u5bb9\u5668\u5185&#xff0c;\u5b9e\u73b0\u5bb9\u5668\u6570\u636e\u6301\u4e45\u5316**\u3002<\/p>\n<\/li>\n<li>\n<p>\u793a\u4f8b1&#xff1a;\u5bbf\u4e3b\u673a\u5df2\u6709\u76ee\u5f55\u6302\u8f7d<\/p>\n<ul>\n<li>mkdir \/data \u521b\u5efa\u5bbf\u4e3b\u673a\u76ee\u5f55<\/li>\n<li>nerdctl run -d -v \/data:\/data busybox &#8212; sleep infinity \u628a\u5bbf\u4e3b\u673a\/data\u6302\u8f7d\u5230\u5bb9\u5668\/data<\/li>\n<li>\u5728\u5bbf\u4e3b\u673atouch \/data\/f1&#xff0c;\u5bb9\u5668\u5185\u53ef\u4ee5\u67e5\u770b\u5230f1\u6587\u4ef6&#xff0c;\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u793a\u4f8b2&#xff1a;\u53ea\u5199\u5bb9\u5668\u5185\u76ee\u5f55&#xff0c;nerdctl\u81ea\u52a8\u521b\u5efa\u5bbf\u4e3b\u673a\u6570\u636e\u5377<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111753-6aae6f6197489.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u6570\u636e\u5b9e\u9645\u5b58\u653e\u8def\u5f84&#xff1a;\/var\/lib\/nerdctl\/xx\/volumes\/default\/xx\/_data<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u793a\u4f8b3&#xff1a;\u81ea\u5b9a\u4e49\u547d\u540d\u7684\u6570\u636e\u5377&#xff08;\u63a8\u8350\u5199\u6cd5 \u5377\u540d:\u5bb9\u5668\u5185\u8def\u5f84&#xff09;<\/p>\n<p><img decoding=\"async\" src=\"2026-09-19hwwynw2icgo.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u81ea\u52a8\u521b\u5efa\u540d\u4e3adata\u7684\u6570\u636e\u5377<\/li>\n<li>\u5728\u5bb9\u5668\u5185touch \/data\/f3&#xff0c;\u6587\u4ef6\u4f1a\u4fdd\u5b58\u5728data\u5377\u5bf9\u5e94\u7684\u5bbf\u4e3b\u673a\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"2026-09-19ls45lcm3pt4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<h5>5.3 \u67e5\u770b\u6570\u636e\u5377<\/h5>\n<li>nerdctl volume ls&#xff1a;\u67e5\u770b\u6240\u6709\u6570\u636e\u5377&#xff0c;\u663e\u793a\u5377\u540d\u79f0\u548c\u5bbf\u4e3b\u673a\u5b58\u50a8\u76ee\u5f55\u3002<\/li>\n<li>\u6570\u636e\u5377\u9ed8\u8ba4\u5b58\u653e\u8def\u5f84&#xff1a;\/var\/lib\/nerdctl\/\u2026\/volumes\/default\/\u5377\u540d\/_data<\/li>\n<hr \/>\n<h4>6\u3001nerdctl\u7ba1\u7406\u547d\u540d\u7a7a\u95f4<\/h4>\n<h5>6.1 \u57fa\u7840\u8bf4\u660e<\/h5>\n<li>nerdctl \u7684 namespace \u548c Linux\u5185\u6838namespace\u3001Kubernetes\u7684namespace\u4e0d\u662f\u540c\u4e00\u4e2a\u6982\u5ff5\u3002<\/li>\n<p><img decoding=\"async\" src=\"2026-09-19b2fywl15jsj.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\n<p>\u547d\u4ee4\u522b\u540d&#xff1a;namespace \u53ef\u4ee5\u7b80\u5199\u4e3a ns\u3002<\/p>\n<\/li>\n<li>\n<p>\u57fa\u7840\u8bed\u6cd5&#xff1a;nerdctl namespace [flags]<\/p>\n<\/li>\n<h5>6.2 namespace\u5b50\u547d\u4ee4<\/h5>\n<li>create&#xff1a;\u521b\u5efa\u65b0\u7684\u547d\u540d\u7a7a\u95f4<\/li>\n<li>inspect&#xff1a;\u67e5\u770b\u4e00\u4e2a\u6216\u591a\u4e2a\u547d\u540d\u7a7a\u95f4\u7684\u8be6\u7ec6\u4fe1\u606f<\/li>\n<li>ls&#xff1a;\u5217\u51fa\u6240\u6709containerd\u547d\u540d\u7a7a\u95f4<\/li>\n<li>remove&#xff1a;\u5220\u9664\u4e00\u4e2a\u6216\u591a\u4e2a\u547d\u540d\u7a7a\u95f4<\/li>\n<li>update&#xff1a;\u66f4\u65b0\u547d\u540d\u7a7a\u95f4\u7684\u6807\u7b7e<\/li>\n<h5>6.4 \u5b9e\u64cd\u793a\u4f8b<\/h5>\n<li>\u67e5\u770b\u6240\u6709\u547d\u540d\u7a7a\u95f4\u547d\u4ee4&#xff1a;nerdctl namespace ls<\/li>\n<li>\u8f93\u51fa\u5b57\u6bb5\u8bf4\u660e&#xff1a;NAME(\u547d\u540d\u7a7a\u95f4\u540d\u79f0)\u3001CONTAINERS(\u5bb9\u5668\u6570\u91cf)\u3001IMAGES(\u955c\u50cf\u6570\u91cf)\u3001VOLUMES(\u6570\u636e\u5377\u6570\u91cf)\u3001LABELS(\u6807\u7b7e)\u3002<\/li>\n<li>\u9ed8\u8ba4\u547d\u540d\u7a7a\u95f4\u540d\u79f0\u4e3adefault&#xff0c;\u6240\u6709\u5bb9\u5668\u3001\u955c\u50cf\u3001\u5377**\u9ed8\u8ba4\u90fd\u653e\u5728default\u547d\u540d\u7a7a\u95f4**\u4e0b\u3002<\/li>\n<hr \/>\n<h3>\u516b\u3001crictl \u5b9e\u8df5<\/h3>\n<h4>8.1 crictl\u547d\u4ee4\u4ecb\u7ecd<\/h4>\n<li>crictl \u662f\u9075\u5faaCRI\u63a5\u53e3\u89c4\u8303\u7684\u547d\u4ee4\u884c\u5de5\u5177&#xff0c;\u7528\u6765\u68c0\u67e5\u3001\u7ba1\u7406kubelet\u8282\u70b9\u4e0a\u7684\u5bb9\u5668\u8fd0\u884c\u65f6\u4e0e\u955c\u50cf\u3002<\/li>\n<li>\u5728**Kubernetes\u96c6\u7fa4\u4e2d\u6267\u884ckubectl\u547d\u4ee4\u65f6&#xff0c;kubelet\u4ee3\u7406\u4f1a\u81ea\u52a8\u8c03\u7528crictl\u7ba1\u7406\u955c\u50cf\u548c\u5bb9\u5668\u3002**<\/li>\n<li>\u624b\u52a8\u6267\u884ccrictl&#xff0c;\u4e00\u822c\u7528\u4e8e\u76f4\u63a5\u67e5\u770b\u8282\u70b9\u4e0a\u955c\u50cf\u548c\u5bb9\u5668\u3002<\/li>\n<h4>8.2 crictl\u547d\u4ee4\u5b89\u88c5<\/h4>\n<li>\u914d\u7f6ekubernetes\u6e90&#xff1a;\u7f16\u8f91\/etc\/yum.repos.d\/kubernetes.repo&#xff0c;\u5199\u5165kubernetes\u963f\u91cc\u4e91\u955c\u50cf\u6e90\u914d\u7f6e\u3002<\/li>\n<li>\u5b89\u88c5\u8f6f\u4ef6\u5305&#xff1a;yum install -y cri-tools&#xff0c;cri-tools\u91cc\u9762\u5305\u542bcrictl\u5de5\u5177\u3002<\/li>\n<h4>8.3 crictl\u547d\u4ee4\u914d\u7f6e<\/h4>\n<li>\n<p>\u4f7f\u7528crictl\u524d&#xff0c;\u9700\u8981\u5148\u914d\u7f6e\/etc\/crictl.yaml\u6587\u4ef6\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-09-191mdbffogdz1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-09-19ark30v5h2yl.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u4e5f\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u76f4\u63a5\u8bbe\u7f6eendpoint<\/p>\n<ul>\n<li>crictl config runtime-endpoint unix:\/\/\/run\/containerd\/containerd.sock<\/li>\n<li>crictl config image-endpoint unix:\/\/\/run\/containerd\/containerd.sock<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u67e5\u770bconfig\u5e2e\u52a9&#xff1a;crictl config &#8211;help&#xff0c;\u53ef\u4ee5\u67e5\u770b\/\u4fee\u6539crictl\u5ba2\u6237\u7aef\u914d\u7f6e\u9879&#xff0c;\u4f8b\u5982debug\u3001timeout\u7b49\u3002<\/p>\n<\/li>\n<h4>8.4 crictl\u547d\u4ee4\u603b\u89c8&#xff08;\u5e2e\u52a9\u4fe1\u606f&#xff09;<\/h4>\n<li>\u67e5\u770bcrictl\u5168\u90e8\u5b50\u547d\u4ee4&#xff0c;\u76f4\u63a5\u8f93\u5165crictl\u3002<\/li>\n<li>\u6838\u5fc3\u5b50\u547d\u4ee4\u5206\u7c7b&#xff1a;\u5bb9\u5668\u64cd\u4f5c\u3001\u955c\u50cf\u64cd\u4f5c\u3001pod\u64cd\u4f5c\u3001\u67e5\u770b\u7248\u672c\u3001\u65e5\u5fd7\u3001\u8d44\u6e90\u7edf\u8ba1\u7b49\u3002<\/li>\n<h4>8.5 \u5e38\u7528\u547d\u4ee4\u5206\u7c7b<\/h4>\n<li>\u955c\u50cf\u547d\u4ee4\n<ul>\n<li>images \/ image \/ img&#xff1a;\u5217\u51fa\u955c\u50cf<\/li>\n<li>pull&#xff1a;\u4ece\u955c\u50cf\u4ed3\u5e93\u62c9\u53d6\u955c\u50cf<\/li>\n<li>inspecti&#xff1a;\u67e5\u770b\u955c\u50cf\u8be6\u7ec6\u4fe1\u606f<\/li>\n<li>imagefsinfo&#xff1a;\u67e5\u770b\u955c\u50cf\u6587\u4ef6\u7cfb\u7edf\u4fe1\u606f<\/li>\n<li>rmi&#xff1a;\u5220\u9664\u955c\u50cf<\/li>\n<\/ul>\n<\/li>\n<li>\u5bb9\u5668\u547d\u4ee4\n<ul>\n<li>ps&#xff1a;\u5217\u51fa\u5bb9\u5668<\/li>\n<li>create&#xff1a;\u65b0\u5efa\u5bb9\u5668<\/li>\n<li>run&#xff1a;\u5728sandbox\u5185\u8fd0\u884c\u65b0\u5bb9\u5668<\/li>\n<li>inspect&#xff1a;\u67e5\u770b\u5bb9\u5668\u8be6\u7ec6\u72b6\u6001<\/li>\n<li>info&#xff1a;\u67e5\u770b\u5bb9\u5668\u8fd0\u884c\u65f6\u4fe1\u606f<\/li>\n<li>attach&#xff1a;\u63a5\u5165\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668<\/li>\n<li>exec&#xff1a;\u5728\u8fd0\u884c\u5bb9\u5668\u5185\u6267\u884c\u547d\u4ee4<\/li>\n<li>logs&#xff1a;\u83b7\u53d6\u5bb9\u5668\u65e5\u5fd7<\/li>\n<li>update&#xff1a;\u66f4\u65b0\u8fd0\u884c\u4e2d\u5bb9\u5668\u914d\u7f6e<\/li>\n<li>stats&#xff1a;\u67e5\u770b\u5bb9\u5668\u8d44\u6e90\u4f7f\u7528\u7edf\u8ba1<\/li>\n<li>checkpoint&#xff1a;\u5bb9\u5668\u5feb\u7167<\/li>\n<li>start&#xff1a;\u542f\u52a8\u5df2\u521b\u5efa\u7684\u5bb9\u5668<\/li>\n<li>stop&#xff1a;\u505c\u6b62\u8fd0\u884c\u7684\u5bb9\u5668<\/li>\n<li>rm&#xff1a;\u5220\u9664\u5bb9\u5668<\/li>\n<\/ul>\n<\/li>\n<li>pod\u547d\u4ee4&#xff08;K8s\u7684pod\u6c99\u7bb1&#xff09;\n<ul>\n<li>pods&#xff1a;\u5217\u51fapod<\/li>\n<li>runp&#xff1a;\u8fd0\u884c\u65b0pod<\/li>\n<li>inspectp&#xff1a;\u67e5\u770bpod\u8be6\u60c5<\/li>\n<li>statsp&#xff1a;\u67e5\u770bpod\u8d44\u6e90\u7edf\u8ba1<\/li>\n<li>port-forward&#xff1a;\u7aef\u53e3\u8f6c\u53d1\u5230pod<\/li>\n<li>stopp&#xff1a;\u505c\u6b62pod<\/li>\n<li>rmp&#xff1a;\u5220\u9664pod<\/li>\n<\/ul>\n<\/li>\n<li>\u5176\u4ed6\u547d\u4ee4\n<ul>\n<li>version&#xff1a;\u67e5\u770b\u8fd0\u884c\u65f6\u7248\u672c\u4fe1\u606f<\/li>\n<li>config&#xff1a;\u83b7\u53d6\/\u4fee\u6539crictl\u5ba2\u6237\u7aef\u914d\u7f6e<\/li>\n<li>completion&#xff1a;\u751f\u6210shell\u8865\u5168\u4ee3\u7801<\/li>\n<li>help \/ h&#xff1a;\u67e5\u770b\u5e2e\u52a9<\/li>\n<\/ul>\n<\/li>\n<h4>8.6 \u5b9e\u64cd\u6848\u4f8b<\/h4>\n<li>\u62c9\u53d6\u955c\u50cf&#xff1a;crictl pull \u955c\u50cf\u5730\u5740<\/li>\n<li>\u67e5\u770b\u672c\u5730\u955c\u50cf&#xff1a;crictl images<\/li>\n<h4>8.7 \u547d\u4ee4\u884c\u5bf9\u7167\u8868&#xff08;docker\/podman\/nerdctl\/ctr\/crictl&#xff09;<\/h4>\n<p><img decoding=\"async\" src=\"2026-09-19jscsp4wrknt.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u91cd\u70b9\u533a\u522b&#xff1a;crictl\u662f\u9762\u5411K8s CRI&#xff0c;\u6709pod&#xff08;sandbox&#xff09;\u76f8\u5173\u547d\u4ee4&#xff1b;ctr\u3001nerdctl\u662fcontainerd\u539f\u751f\u5de5\u5177&#xff1b;docker\u662f\u4f20\u7edf\u5bb9\u5668\u5de5\u5177\u3002<\/li>\n<h4>8.8 nerdctl\u4e0ecrictl\u5bf9\u6bd4<\/h4>\n<p>nerdctl \u548c crictl \u90fd\u662f\u7528\u4e8e\u7ba1\u7406\u548c\u64cd\u4f5c\u5bb9\u5668\u7684\u547d\u4ee4\u884c\u5de5\u5177&#xff0c;\u4f46\u662f\u5b83\u4eec\u5728\u5f00\u53d1\u8005\u3001\u8bbe\u8ba1\u76ee\u7684\u548c\u529f\u80fd\u4e0a\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<li>nerdctl\n<ul>\n<li>\u5f00\u53d1\u8005&#xff1a;Akihiro Suda&#xff08;docker\u521b\u59cb\u4eba\u4e4b\u4e00&#xff0c;containerd\u6838\u5fc3\u8d21\u732e\u8005&#xff09;<\/li>\n<li>\u8bbe\u8ba1\u76ee\u6807&#xff1a;\u517c\u5bb9Docker CLI\u7684containerd CLI&#xff0c;\u7edd\u5927\u591a\u6570docker\u547d\u4ee4\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528nerdctl\u6267\u884c\u3002<\/li>\n<li>\u529f\u80fd&#xff1a;\u5bb9\u5668\u751f\u547d\u5468\u671f\u7ba1\u7406\u3001\u955c\u50cf\u3001\u7f51\u7edc\u3001\u5b58\u50a8\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<\/li>\n<li>crictl\n<ul>\n<li>\u5f00\u53d1\u8005&#xff1a;Kubernetes\u793e\u533a\u5f00\u53d1<\/li>\n<li>\u8bbe\u8ba1\u76ee\u6807&#xff1a;\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u63a5\u53e3&#xff0c;CRI\u5ba2\u6237\u7aef&#xff0c;\u548c\u6240\u6709\u5b9e\u73b0CRI\u89c4\u8303\u7684\u5bb9\u5668\u8fd0\u884c\u65f6\u4ea4\u4e92<\/li>\n<li>\u529f\u80fd&#xff1a;\u4e3b\u8981\u7528\u4e8e\u8c03\u8bd5&#xff0c;\u5bf9\u63a5CRI\u63a5\u53e3&#xff0c;\u7ba1\u7406pod\u6c99\u7bb1\u3001\u5bb9\u5668\u3001\u955c\u50cf&#xff0c;\u4e13\u95e8\u9002\u914dK8s\u573a\u666f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u603b\u7ed3&#xff1a;nerdctl\u9002\u5408\u4e60\u60efDocker CLI\u7684\u7528\u6237&#xff1b;crictl\u9002\u5408K8s\u96c6\u7fa4\u8c03\u8bd5\u3001\u6392\u67e5CRI\u5bb9\u5668\u8fd0\u884c\u65f6\u3002<\/li>\n<p>\u8865\u5145&#xff1a;\u53ef\u4ee5\u8bbe\u7f6e\u522b\u540dalias docker&#061;nerdctl&#xff0c;\u76f4\u63a5\u50cfdocker\u4e00\u6837\u4f7f\u7528nerdctl\u547d\u4ee4\u3002<\/p>\n<p>rward&#096;&#xff1a;\u7aef\u53e3\u8f6c\u53d1\u5230pod<\/p>\n<ul>\n<li>stopp&#xff1a;\u505c\u6b62pod<\/li>\n<li>rmp&#xff1a;\u5220\u9664pod<\/li>\n<\/ul>\n<li>\u5176\u4ed6\u547d\u4ee4\n<ul>\n<li>version&#xff1a;\u67e5\u770b\u8fd0\u884c\u65f6\u7248\u672c\u4fe1\u606f<\/li>\n<li>config&#xff1a;\u83b7\u53d6\/\u4fee\u6539crictl\u5ba2\u6237\u7aef\u914d\u7f6e<\/li>\n<li>completion&#xff1a;\u751f\u6210shell\u8865\u5168\u4ee3\u7801<\/li>\n<li>help \/ h&#xff1a;\u67e5\u770b\u5e2e\u52a9<\/li>\n<\/ul>\n<\/li>\n<h4>8.6 \u5b9e\u64cd\u6848\u4f8b<\/h4>\n<li>\u62c9\u53d6\u955c\u50cf&#xff1a;crictl pull \u955c\u50cf\u5730\u5740<\/li>\n<li>\u67e5\u770b\u672c\u5730\u955c\u50cf&#xff1a;crictl images<\/li>\n<h4>8.7 \u547d\u4ee4\u884c\u5bf9\u7167\u8868&#xff08;docker\/podman\/nerdctl\/ctr\/crictl&#xff09;<\/h4>\n<p>[\u5916\u94fe\u56fe\u7247\u8f6c\u5b58\u4e2d\u2026(img-yI3D04tK-1789722888467)]<\/p>\n<li>\u91cd\u70b9\u533a\u522b&#xff1a;crictl\u662f\u9762\u5411K8s CRI&#xff0c;\u6709pod&#xff08;sandbox&#xff09;\u76f8\u5173\u547d\u4ee4&#xff1b;ctr\u3001nerdctl\u662fcontainerd\u539f\u751f\u5de5\u5177&#xff1b;docker\u662f\u4f20\u7edf\u5bb9\u5668\u5de5\u5177\u3002<\/li>\n<h4>8.8 nerdctl\u4e0ecrictl\u5bf9\u6bd4<\/h4>\n<p>nerdctl \u548c crictl \u90fd\u662f\u7528\u4e8e\u7ba1\u7406\u548c\u64cd\u4f5c\u5bb9\u5668\u7684\u547d\u4ee4\u884c\u5de5\u5177&#xff0c;\u4f46\u662f\u5b83\u4eec\u5728\u5f00\u53d1\u8005\u3001\u8bbe\u8ba1\u76ee\u7684\u548c\u529f\u80fd\u4e0a\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<li>nerdctl\n<ul>\n<li>\u5f00\u53d1\u8005&#xff1a;Akihiro Suda&#xff08;docker\u521b\u59cb\u4eba\u4e4b\u4e00&#xff0c;containerd\u6838\u5fc3\u8d21\u732e\u8005&#xff09;<\/li>\n<li>\u8bbe\u8ba1\u76ee\u6807&#xff1a;\u517c\u5bb9Docker CLI\u7684containerd CLI&#xff0c;\u7edd\u5927\u591a\u6570docker\u547d\u4ee4\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528nerdctl\u6267\u884c\u3002<\/li>\n<li>\u529f\u80fd&#xff1a;\u5bb9\u5668\u751f\u547d\u5468\u671f\u7ba1\u7406\u3001\u955c\u50cf\u3001\u7f51\u7edc\u3001\u5b58\u50a8\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<\/li>\n<li>crictl\n<ul>\n<li>\u5f00\u53d1\u8005&#xff1a;Kubernetes\u793e\u533a\u5f00\u53d1<\/li>\n<li>\u8bbe\u8ba1\u76ee\u6807&#xff1a;\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u63a5\u53e3&#xff0c;CRI\u5ba2\u6237\u7aef&#xff0c;\u548c\u6240\u6709\u5b9e\u73b0CRI\u89c4\u8303\u7684\u5bb9\u5668\u8fd0\u884c\u65f6\u4ea4\u4e92<\/li>\n<li>\u529f\u80fd&#xff1a;\u4e3b\u8981\u7528\u4e8e\u8c03\u8bd5&#xff0c;\u5bf9\u63a5CRI\u63a5\u53e3&#xff0c;\u7ba1\u7406pod\u6c99\u7bb1\u3001\u5bb9\u5668\u3001\u955c\u50cf&#xff0c;\u4e13\u95e8\u9002\u914dK8s\u573a\u666f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u603b\u7ed3&#xff1a;nerdctl\u9002\u5408\u4e60\u60efDocker CLI\u7684\u7528\u6237&#xff1b;crictl\u9002\u5408K8s\u96c6\u7fa4\u8c03\u8bd5\u3001\u6392\u67e5CRI\u5bb9\u5668\u8fd0\u884c\u65f6\u3002<\/li>\n<p>\u8865\u5145&#xff1a;\u53ef\u4ee5\u8bbe\u7f6e\u522b\u540dalias docker&#061;nerdctl&#xff0c;\u76f4\u63a5\u50cfdocker\u4e00\u6837\u4f7f\u7528nerdctl\u547d\u4ee4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5bb9\u5668\u7ba1\u7406\u5de5\u5177Containerd\u4e00\u3001Containerd\u4ecb\u7ecd<br \/>\n1\u3001\u524d\u8a00<br \/>\n\u8d77\u6e90&#xff1a;2016.3 Docker1.11\u5185\u7f6econtainerd&#xff1b;\u4e4b\u540econtainerd\u4eceDocker\u5f15\u64ce\u5265\u79bb&#xff0c;\u72ec\u7acb\u5f00\u6e90&#xff0c;\u76ee\u6807\u662f\u6253\u9020\u5f00\u653e\u7a33\u5b9a\u7684\u5bb9\u5668\u8fd0\u884c\u57fa\u7840\u8bbe\u65bd&#xff0c;\u72ec\u7acb\u540e\u80fd\u529b\u8986\u76d6\u5bb9\u5668\u8fd0\u884c\u65f6\u5168\u91cf\u7ba1\u7406\u9700\u6c42\u3002\u5b9a\u4f4d&#xff1a;\u4e0d\u662f\u9762\u5411\u666e\u901a\u7ec8\u7aef\u7528\u6237&#xff0c;\u4e3b\u8981\u4f9b\u4e0a\u5c42\u7f16\u6392\u7cfb\u7edf\u96c6\u6210\u4f7f\u7528&#xff08;K8s\u3001Swarm\u3001Mesos&amp;#xff<\/p>\n","protected":false},"author":2,"featured_media":107453,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,58,97,1447,44],"topic":[],"class_list":["post-107473","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-linux","tag-97","tag-1447","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u522b\u53ea\u61c2 Docker\uff01\u6df1\u5165\u5bb9\u5668\u5e95\u5c42\uff1aContainerd \u624d\u662f\u5e55\u540e\u5927\u4f6c - \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\/107473.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u522b\u53ea\u61c2 Docker\uff01\u6df1\u5165\u5bb9\u5668\u5e95\u5c42\uff1aContainerd \u624d\u662f\u5e55\u540e\u5927\u4f6c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5bb9\u5668\u7ba1\u7406\u5de5\u5177Containerd\u4e00\u3001Containerd\u4ecb\u7ecd 1\u3001\u524d\u8a00 \u8d77\u6e90&#xff1a;2016.3 Docker1.11\u5185\u7f6econtainerd&#xff1b;\u4e4b\u540econtainerd\u4eceDocker\u5f15\u64ce\u5265\u79bb&#xff0c;\u72ec\u7acb\u5f00\u6e90&#xff0c;\u76ee\u6807\u662f\u6253\u9020\u5f00\u653e\u7a33\u5b9a\u7684\u5bb9\u5668\u8fd0\u884c\u57fa\u7840\u8bbe\u65bd&#xff0c;\u72ec\u7acb\u540e\u80fd\u529b\u8986\u76d6\u5bb9\u5668\u8fd0\u884c\u65f6\u5168\u91cf\u7ba1\u7406\u9700\u6c42\u3002\u5b9a\u4f4d&#xff1a;\u4e0d\u662f\u9762\u5411\u666e\u901a\u7ec8\u7aef\u7528\u6237&#xff0c;\u4e3b\u8981\u4f9b\u4e0a\u5c42\u7f16\u6392\u7cfb\u7edf\u96c6\u6210\u4f7f\u7528&#xff08;K8s\u3001Swarm\u3001Mesos&amp;#xff\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/107473.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-19T11:17:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111747-6aae6f5bb766f.png\" \/>\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=\"14 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107473.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/107473.html\",\"name\":\"\u522b\u53ea\u61c2 Docker\uff01\u6df1\u5165\u5bb9\u5668\u5e95\u5c42\uff1aContainerd \u624d\u662f\u5e55\u540e\u5927\u4f6c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-19T11:17:54+00:00\",\"dateModified\":\"2026-09-19T11:17:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/107473.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/107473.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107473.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u522b\u53ea\u61c2 Docker\uff01\u6df1\u5165\u5bb9\u5668\u5e95\u5c42\uff1aContainerd \u624d\u662f\u5e55\u540e\u5927\u4f6c\"}]},{\"@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":"\u522b\u53ea\u61c2 Docker\uff01\u6df1\u5165\u5bb9\u5668\u5e95\u5c42\uff1aContainerd \u624d\u662f\u5e55\u540e\u5927\u4f6c - \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\/107473.html","og_locale":"zh_CN","og_type":"article","og_title":"\u522b\u53ea\u61c2 Docker\uff01\u6df1\u5165\u5bb9\u5668\u5e95\u5c42\uff1aContainerd \u624d\u662f\u5e55\u540e\u5927\u4f6c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5bb9\u5668\u7ba1\u7406\u5de5\u5177Containerd\u4e00\u3001Containerd\u4ecb\u7ecd 1\u3001\u524d\u8a00 \u8d77\u6e90&#xff1a;2016.3 Docker1.11\u5185\u7f6econtainerd&#xff1b;\u4e4b\u540econtainerd\u4eceDocker\u5f15\u64ce\u5265\u79bb&#xff0c;\u72ec\u7acb\u5f00\u6e90&#xff0c;\u76ee\u6807\u662f\u6253\u9020\u5f00\u653e\u7a33\u5b9a\u7684\u5bb9\u5668\u8fd0\u884c\u57fa\u7840\u8bbe\u65bd&#xff0c;\u72ec\u7acb\u540e\u80fd\u529b\u8986\u76d6\u5bb9\u5668\u8fd0\u884c\u65f6\u5168\u91cf\u7ba1\u7406\u9700\u6c42\u3002\u5b9a\u4f4d&#xff1a;\u4e0d\u662f\u9762\u5411\u666e\u901a\u7ec8\u7aef\u7528\u6237&#xff0c;\u4e3b\u8981\u4f9b\u4e0a\u5c42\u7f16\u6392\u7cfb\u7edf\u96c6\u6210\u4f7f\u7528&#xff08;K8s\u3001Swarm\u3001Mesos&amp;#xff","og_url":"https:\/\/www.wsisp.com\/helps\/107473.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-19T11:17:54+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919111747-6aae6f5bb766f.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"14 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/107473.html","url":"https:\/\/www.wsisp.com\/helps\/107473.html","name":"\u522b\u53ea\u61c2 Docker\uff01\u6df1\u5165\u5bb9\u5668\u5e95\u5c42\uff1aContainerd \u624d\u662f\u5e55\u540e\u5927\u4f6c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-19T11:17:54+00:00","dateModified":"2026-09-19T11:17:54+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/107473.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/107473.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/107473.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u522b\u53ea\u61c2 Docker\uff01\u6df1\u5165\u5bb9\u5668\u5e95\u5c42\uff1aContainerd \u624d\u662f\u5e55\u540e\u5927\u4f6c"}]},{"@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\/107473","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=107473"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107473\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/107453"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=107473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=107473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=107473"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=107473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}