{"id":780,"date":"2022-10-02T19:00:15","date_gmt":"2022-10-02T10:00:15","guid":{"rendered":"https:\/\/blog.mamimu.me\/fishblue\/?p=780"},"modified":"2022-10-02T19:00:15","modified_gmt":"2022-10-02T10:00:15","slug":"docker%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/blog.mamimu.me\/fishblue\/?p=780","title":{"rendered":"Docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>Rocky Linux 8.6\u306bdocker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u304d\u306e\u624b\u9806\u3067\u3059\u3002<\/p>\n<p>\u25a0podman\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08podman\u306fRedHat\u793e\u304c\u958b\u767a\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u305f\u3057\u304bdocker\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067conflict\u304c\u8d77\u304d\u305f\u3068\u601d\u3046\u306e\u3067\u4e8b\u524d\u306b\u524a\u9664\u3057\u307e\u3059\uff09<br \/>\n# yum erase podman*<\/p>\n<p>\u25a0docker\u7528\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8ffd\u52a0<br \/>\n# yum install yum-utils<br \/>\n# yum-config-manager &#8211;add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<\/p>\n<p>\u25a0docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin<\/p>\n<p>\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n\/\/\/\/<br \/>\n\uff5e\u7701\u7565\uff5e<br \/>\n  &#8211; \u30d1\u30c3\u30b1\u30fc\u30b8 containerd.io-1.6.8-3.1.el8.x86_64 \u306f runc \u3068\u7af6\u5408\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 \u306b\u3088\u308a\u63d0\u4f9b\u3055\u308c\u307e\u3059<br \/>\n  &#8211; \u30d1\u30c3\u30b1\u30fc\u30b8 containerd.io-1.6.8-3.1.el8.x86_64 \u306f runc \u3092\u5ec3\u6b62\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 \u306b\u3088\u308a\u63d0\u4f9b\u3055\u308c\u307e\u3059<br \/>\n  &#8211; \u30d1\u30c3\u30b1\u30fc\u30b8 containers-common-2:1-27.module+el8.6.0+971+69b94baf.x86_64 \u306b\u306f runc \u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u3069\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u304b\u3089\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u305b\u3093<br \/>\n  &#8211; \u30d1\u30c3\u30b1\u30fc\u30b8 containers-common-2:1-35.module+el8.6.0+997+05c9d812.x86_64 \u306b\u306f runc \u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u3069\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u304b\u3089\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u305b\u3093<br \/>\n  &#8211; \u30d1\u30c3\u30b1\u30fc\u30b8 containers-common-2:1-28.module+el8.6.0+784+32aef5de.x86_64 \u306f\u30e2\u30b8\u30e5\u30e9\u30fc\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306b\u4e00\u81f4\u3057\u307e\u305b\u3093<br \/>\n  &#8211; \u30d1\u30c3\u30b1\u30fc\u30b8 containers-common-2:1-28.module+el8.6.0+972+902006e0.x86_64 \u306f\u30e2\u30b8\u30e5\u30e9\u30fc\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306b\u4e00\u81f4\u3057\u307e\u305b\u3093<br \/>\n(\u7af6\u5408\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7f6e\u304d\u63db\u3048\u308b\u306b\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b &#8216;&#8211;allowerasing&#8217; \u3092\u8ffd\u52a0\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044 \u307e\u305f\u306f\u3001&#8217;&#8211;skip-broken&#8217; \u3092\u8ffd\u52a0\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e0d\u53ef\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u304f\u3060\u3055\u3044 \u307e\u305f\u306f\u3001&#8217;&#8211;nobest&#8217; \u3092\u8ffd\u52a0\u3057\u3066\u3001\u6700\u9069\u5019\u88dc\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u307f\u3092\u4f7f\u7528\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044)<br \/>\n\/\/\/\/<\/p>\n<p>\u25a0nobest\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u518d\u5ea6docker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# yum install &#8211;nobest docker-ce docker-ce-cli containerd.io docker-compose-plugin<\/p>\n<p>\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n\/\/\/\/<br \/>\n\uff5e\u7701\u7565\uff5e<br \/>\n  &#8211; \u30d1\u30c3\u30b1\u30fc\u30b8 docker-ce-3:20.10.17-3.el8.x86_64 \u306b\u306f containerd.io >= 1.4.1 \u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u3069\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u304b\u3089\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u305b\u3093<br \/>\n  &#8211; \u30d1\u30c3\u30b1\u30fc\u30b8 docker-ce-3:20.10.18-3.el8.x86_64 \u306b\u306f containerd.io >= 1.4.1 \u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u3069\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u304b\u3089\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u305b\u3093<br \/>\n(\u7af6\u5408\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7f6e\u304d\u63db\u3048\u308b\u306b\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b &#8216;&#8211;allowerasing&#8217; \u3092\u8ffd\u52a0\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044 \u307e\u305f\u306f\u3001&#8217;&#8211;skip-broken&#8217; \u3092\u8ffd\u52a0\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e0d\u53ef\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u304f\u3060\u3055\u3044)<br \/>\n\/\/\/\/<\/p>\n<p>\u25a0\u8a66\u3057\u306brunc\u3092\u524a\u9664<br \/>\n# yum erase runc<\/p>\n<p>\u25a0\u518d\u5ea6\u3001docker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin<br \/>\n\u21d2\u4eca\u5ea6\u306f\u6210\u529f<\/p>\n<p>\u25a0docker\u306e\u8d77\u52d5\u3068\u81ea\u52d5\u8d77\u52d5\u5316<br \/>\n# systemctl start docker<br \/>\n# systemctl enable docker<\/p>\n<p>\u25a0hello-world\u306e\u78ba\u8a8d<br \/>\n# docker run hello-world<\/p>\n<p>\u53c2\u8003URL<br \/>\nhttps:\/\/docs.docker.com\/engine\/install\/centos\/<br \/>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:inline-block;width:468px;height:60px\"\n     data-ad-client=\"ca-pub-9128529039742412\"\n     data-ad-slot=\"0240515414\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 8.6\u306bdocker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u304d\u306e\u624b\u9806\u3067\u3059\u3002 \u25a0podman\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08podman\u306fRedHat\u793e\u304c\u958b\u767a\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u305f\u3057\u304bdocker\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067conflic<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,4],"tags":[],"class_list":["post-780","post","type-post","status-publish","format-standard","hentry","category-linux","category-4"],"_links":{"self":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/posts\/780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=780"}],"version-history":[{"count":0,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/posts\/780\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}