{"id":5708,"date":"2022-11-02T07:35:24","date_gmt":"2022-11-01T22:35:24","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=5708"},"modified":"2022-12-30T07:09:14","modified_gmt":"2022-12-29T22:09:14","slug":"rocky-linux-9%e3%81%abdocker-ce%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/5708","title":{"rendered":"Docker CE\u3092Rocky Linux 9\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01"},"content":{"rendered":"<p>Rocky Linux 9\u306bDocker CE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u30b7\u30b9\u30c6\u30e0\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\uff01<\/h2>\n<p>\u30b7\u30b9\u30c6\u30e0\u3092\u6700\u65b0\u5316\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf update -y\r\n<\/pre>\n<h2>\u30b7\u30b9\u30c6\u30e0\u3092\u518d\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>\u30b7\u30b9\u30c6\u30e0\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u5834\u5408\u306f\u3001\u30ab\u30fc\u30cd\u30eb\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306a\u3069\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u78ba\u5b9f\u306b\u53cd\u6620\u3059\u308b\u305f\u3081\u30b7\u30b9\u30c6\u30e0\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# reboot\r\n<\/pre>\n<h2>Docker CE\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u767b\u9332\u3059\u308b\uff01<\/h2>\n<p>Docker CE\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf config-manager --add-repo=https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo -y\r\n<\/pre>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306eDocker\u3092\u524a\u9664\u3059\u308b\uff01<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306eDocker\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf remove docker docker-common docker-selinux docker-engine -y\r\n<\/pre>\n<h2>Docker CE\u306e\u524d\u63d0\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>Docker CE\u306e\u524d\u63d0\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf install device-mapper-persistent-data lvm2 -y\r\n<\/pre>\n<h2>Docker CE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>Docker CE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y\r\nLast metadata expiration check: 0:00:10 ago on Wed 02 Nov 2022 07:11:15 AM JST.\r\nError: \r\n Problem: problem with installed package buildah-1:1.26.2-1.el9_0.x86_64\r\n  - package buildah-1:1.26.2-1.el9_0.x86_64 requires runc &gt;= 1.0.0-26, but none of the providers can be installed\r\n  - package containerd.io-1.6.9-3.1.el9.x86_64 conflicts with runc provided by runc-4:1.1.3-2.el9_0.x86_64\r\n  - package containerd.io-1.6.9-3.1.el9.x86_64 obsoletes runc provided by runc-4:1.1.3-2.el9_0.x86_64\r\n  - cannot install the best candidate for the job\r\n(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)\r\n<\/pre>\n<p>\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u5f93\u3044\u3001\u300c--allowerasing\u300d\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u518d\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u8a66\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin --allowerasing -y\r\nLast metadata expiration check: 0:00:21 ago on Wed 02 Nov 2022 07:11:15 AM JST.\r\nDependencies resolved.\r\n========================================================================================================================\r\n Package                              Architecture      Version                       Repository                   Size\r\n========================================================================================================================\r\nInstalling:\r\n containerd.io                        x86_64            1.6.9-3.1.el9                 docker-ce-stable             32 M\r\n     replacing  runc.x86_64 4:1.1.3-2.el9_0\r\n docker-ce                            x86_64            3:20.10.21-3.el9              docker-ce-stable             21 M\r\n docker-ce-cli                        x86_64            1:20.10.21-3.el9              docker-ce-stable             29 M\r\n docker-compose-plugin                x86_64            2.12.2-3.el9                  docker-ce-stable             10 M\r\nInstalling dependencies:\r\n container-selinux                    noarch            3:2.188.0-1.el9_0             appstream                    47 k\r\n docker-ce-rootless-extras            x86_64            20.10.21-3.el9                docker-ce-stable            3.7 M\r\n flatpak-selinux                      noarch            1.12.5-2.el9_0                appstream                    22 k\r\n rpm-plugin-selinux                   x86_64            4.16.1.3-12.el9_0             baseos                       19 k\r\n selinux-policy                       noarch            34.1.29-1.el9_0.2             baseos                       55 k\r\n selinux-policy-targeted              noarch            34.1.29-1.el9_0.2             baseos                      6.3 M\r\nInstalling weak dependencies:\r\n docker-scan-plugin                   x86_64            0.21.0-3.el9                  docker-ce-stable            3.8 M\r\nRemoving dependent packages:\r\n buildah                              x86_64            1:1.26.2-1.el9_0              @appstream                   29 M\r\n\r\nTransaction Summary\r\n========================================================================================================================\r\nInstall  11 Packages\r\nRemove    1 Package\r\n...\r\nInstalled:\r\n  container-selinux-3:2.188.0-1.el9_0.noarch                     containerd.io-1.6.9-3.1.el9.x86_64                     \r\n  docker-ce-3:20.10.21-3.el9.x86_64                              docker-ce-cli-1:20.10.21-3.el9.x86_64                  \r\n  docker-ce-rootless-extras-20.10.21-3.el9.x86_64                docker-compose-plugin-2.12.2-3.el9.x86_64              \r\n  docker-scan-plugin-0.21.0-3.el9.x86_64                         flatpak-selinux-1.12.5-2.el9_0.noarch                  \r\n  rpm-plugin-selinux-4.16.1.3-12.el9_0.x86_64                    selinux-policy-34.1.29-1.el9_0.2.noarch                \r\n  selinux-policy-targeted-34.1.29-1.el9_0.2.noarch              \r\nRemoved:\r\n  buildah-1:1.26.2-1.el9_0.x86_64                                                                                       \r\n\r\nComplete!\r\n<\/pre>\n<h2>Docker CE\u3092systemd\u306b\u767b\u9332\u3059\u308b\uff01<\/h2>\n<p>Docker CE\u3092systemd\u306b\u767b\u9332\u3057\u3066\u3001\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\r\n# systemctl enable docker --now\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/docker.service \u2192 \/usr\/lib\/systemd\/system\/docker.service.\r\n# systemctl status docker\r\n\u25cf docker.service - Docker Application Container Engine\r\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/docker.service; enabled; vendor preset: disabled)\r\n     Active: active (running) since Wed 2022-11-02 07:15:24 JST; 18s ago\r\nTriggeredBy: \u25cf docker.socket\r\n       Docs: https:\/\/docs.docker.com\r\n   Main PID: 5059 (dockerd)\r\n      Tasks: 8\r\n     Memory: 24.2M\r\n        CPU: 182ms\r\n     CGroup: \/system.slice\/docker.service\r\n             \u2514\u25005059 \/usr\/bin\/dockerd -H fd:\/\/ --containerd=\/run\/containerd\/containerd.sock\r\n<\/pre>\n<h2>Docker CE\u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d\u3092\u542b\u3081\u3066\u3001Docker CE\u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# docker version\r\nClient: Docker Engine - Community\r\n Version:           20.10.21\r\n API version:       1.41\r\n Go version:        go1.18.7\r\n Git commit:        baeda1f\r\n Built:             Tue Oct 25 18:02:16 2022\r\n OS\/Arch:           linux\/amd64\r\n Context:           default\r\n Experimental:      true\r\n\r\nServer: Docker Engine - Community\r\n Engine:\r\n  Version:          20.10.21\r\n  API version:      1.41 (minimum version 1.12)\r\n  Go version:       go1.18.7\r\n  Git commit:       3056208\r\n  Built:            Tue Oct 25 18:00:01 2022\r\n  OS\/Arch:          linux\/amd64\r\n  Experimental:     false\r\n containerd:\r\n  Version:          1.6.9\r\n  GitCommit:        1c90a442489720eec95342e1789ee8a5e1b9536f\r\n runc:\r\n  Version:          1.1.4\r\n  GitCommit:        v1.1.4-0-g5fd4c4d\r\n docker-init:\r\n  Version:          0.19.0\r\n  GitCommit:        de40ad0\r\n<\/pre>\n<h2>sudo\u306a\u3057\u3067Docker\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\uff01<\/h2>\n<p>sudo\u306a\u3057\u3067Docker\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u3001Docker\u3092\u4f7f\u7528\u3059\u308b\u30e6\u30fc\u30b6\u3092docker\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo gpasswd -a usradmin docker\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Rocky Linux 9\u306bDocker CE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/docs.docker.com\/\" target=\"_blank\" rel=\"noopener\">Docker Docs<\/a><\/li>\n<li><a href=\"https:\/\/hub.docker.com\/\" target=\"_blank\" rel=\"noopener\">Docker Hub<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/docker\" target=\"_blank\" rel=\"noopener\">GitHub - Docker<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/6869\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Docker\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2020\/01\/eyecatch_docker_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Docker\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Docker\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><iframe sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=infotecr-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=B089VZXX63&linkId=d160f88ef500999a2e19dff01ff35ffd\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 9\u306bDocker CE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":6879,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159],"tags":[],"class_list":["post-5708","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=5708"}],"version-history":[{"count":0,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5708\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/6879"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=5708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=5708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=5708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}