{"id":3956,"date":"2021-05-20T01:02:40","date_gmt":"2021-05-19T16:02:40","guid":{"rendered":"https:\/\/tech.akat.info\/?p=3956"},"modified":"2021-05-20T01:02:40","modified_gmt":"2021-05-19T16:02:40","slug":"runc%e3%81%ae%e4%bb%a3%e3%82%8f%e3%82%8a%e3%81%abkata-containers%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%82%88%e3%81%86%e3%81%a8%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=3956","title":{"rendered":"runc\u306e\u4ee3\u308f\u308a\u306bKata Containers\u3092\u5229\u7528\u3057\u3088\u3046\u3068\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p>Docker\u306frunc\u3092\u5229\u7528\u3057\u3066Linux\u30ab\u30fc\u30cd\u30eb\u6a5f\u80fd\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\nrunc\u3067\u306f\u30db\u30b9\u30c8\u306e\u30ab\u30fc\u30cd\u30eb\u3092\u5171\u6709\u3057\u3066\u5229\u7528\u3059\u308b\u305f\u3081\u30011\u3064\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u554f\u984c\u304c\u3042\u308c\u3070\u4ed6\u306b\u3082\u5f71\u97ff\u3059\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u304f\u306a\u308b\u3002<br \/>\nKata Containers\u306f\u30cf\u30a4\u30d1\u30fc\u30d0\u30a4\u30b6\u30fc\u3092\u5229\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u6bce\u306b\u30ab\u30fc\u30cd\u30eb\u3092\u52d5\u4f5c\u3055\u305b\u308b\u3002<\/p>\n<h2>\u74b0\u5883\u306b\u3064\u3044\u3066<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# cat \/etc\/lsb-release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=18.04\r\nDISTRIB_CODENAME=bionic\r\nDISTRIB_DESCRIPTION=&quot;Ubuntu 18.04.5 LTS&quot;\r\n# docker --version\r\nDocker version 20.10.6, build 370c289\r\n<\/pre>\n<h2>Kata Containers\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>2021\u5e745\u670820\u65e5\u6642\u70b9\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.1.0\u3067\u3042\u308b\u304c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u5bb9\u6613\u3055\u3084\u7ba1\u7406\u3057\u3084\u3059\u3055\u304b\u3089snapd\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# apt install snapd\r\n\r\n# snap install kata-containers\r\n\r\nerror: This revision of snap &quot;kata-containers&quot; was published using classic confinement and thus may\r\n       perform arbitrary system changes outside of the security sandbox that snaps are usually\r\n       confined to, which may put your system at risk.\r\n\r\n       If you understand and want to proceed repeat the command including --classic.\r\n\r\n# snap install kata-containers --classic\r\n\r\n# snap list\r\nName             Version   Rev    Tracking       Publisher        Notes\r\ncore20           20210429  1026   latest\/stable  canonical\u2713       base\r\nkata-containers  1.12.1    716    latest\/stable  katacontainers\u2713  classic\r\nsnapd            2.50      11841  latest\/stable  canonical\u2713       snapd\r\n<\/pre>\n<h2>\u30e9\u30f3\u30bf\u30a4\u30e0\u3068\u3057\u3066Kata Containers\u3092\u5229\u7528\u3057\u3066\u307f\u3088\u3046\u3068\u3057\u305f\u304c\u30a8\u30e9\u30fc\u3060\u3063\u305f<\/h2>\n<p><a href=\"https:\/\/github.com\/kata-containers\/kata-containers\/tree\/main\/docs\/install\">\u516c\u5f0f\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30da\u30fc\u30b8<\/a>\u306b\u3082\u3042\u308b\u901a\u308a\u3001AWS\u3067\u3042\u308c\u3070\u30d9\u30a2\u30e1\u30bf\u30eb\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u306a\u3044\u3068\u52d5\u4f5c\u3057\u306a\u3044\u306a\u3069\u5236\u7d04\u306f\u591a\u304f\u3001\u624b\u6301\u3061\u306e\u4eee\u60f3\u74b0\u5883\u3067\u306f\u52d5\u4f5c\u3057\u306a\u304b\u3063\u305f\u3002(\u3055\u304f\u3089\u306eVPS)<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#  vi \/etc\/docker\/daemon.json\r\n{\r\n  &quot;default-address-pools&quot;:&#x5B;\r\n    {&quot;base&quot;:&quot;192.168.0.0\/16&quot;,&quot;size&quot;:24}\r\n  ],\r\n  &quot;runtimes&quot;:{\r\n          &quot;kata&quot;: {\r\n                  &quot;path&quot;: &quot;\/snap\/bin\/kata-containers.runtime&quot;\r\n          }\r\n  }\r\n}\r\n\r\n# systemctl restart docker\r\n\r\n# docker run --runtime=kata centos uname -a\r\ndocker: Error response from daemon: OCI runtime create failed: failed to launch qemu: exit status 1, error messages from qemu log: qemu-system-x86_64: -m 2048M,slots=10,maxmem=2009M: invalid value of -m option maxmem: maximum memory size (0x7d900000) must be at least the initial memory size (0x80000000): unknown.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u306frunc\u3092\u5229\u7528\u3057\u3066Linux\u30ab\u30fc\u30cd\u30eb\u6a5f\u80fd\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u3002 runc\u3067\u306f\u30db\u30b9\u30c8\u306e\u30ab\u30fc\u30cd\u30eb\u3092\u5171\u6709\u3057\u3066\u5229\u7528\u3059\u308b\u305f\u3081\u30011\u3064\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u554f\u984c\u304c\u3042\u308c\u3070\u4ed6\u306b\u3082\u5f71\u97ff\u3059\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u304f\u306a\u308b\u3002 Kata Container [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[72],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3956"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3956"}],"version-history":[{"count":1,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3956\/revisions"}],"predecessor-version":[{"id":3957,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3956\/revisions\/3957"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}