いろいろやってみるにっき

てきとーに生きている奴の日記

古いエントリのサムネイル画像がリンク切れになってたりするけど、チマチマ修正中


WSL2のOracle Linux 8.5にDocker その2

前回なんとかgenieをインストールするところまで行った。

 

 

 

手順

systemdのPID 1化の手順はこちら。残りはgenieの初期化から。

go-journey.club

 

今回はOracle Linux 8にDockerをインストールする手順を参考にする。

souiunogaii.hatenablog.com

 

genieの初期化と起動

[root@EAGLEII tmp]# genie -i
Waiting for systemd....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[root@EAGLEII tmp]# genie -s

うまくいった。

 

systemd確認

[root@EAGLEII-wsl ~]# ps -ef
UID          PID    PPID  C STIME TTY          TIME CMD
root           1       0  0 09:38 ?        00:00:00 systemd
root          30       1  0 09:38 ?        00:00:00 /usr/lib/systemd/systemd-journald
root          37       1  0 09:38 ?        00:00:00 /usr/sbin/rsyslogd -n
root          44       1  0 09:38 ?        00:00:00 /usr/lib/systemd/systemd-logind
dbus          45       1  0 09:38 ?        00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfil
root          62       1  0 09:38 tty1     00:00:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root          67       1  0 09:38 ?        00:00:00 /usr/sbin/sshd -D -oCiphers=aes256-gcm@openssh.com,chacha20-poly1305
root         113       1  0 09:39 ?        00:00:00 /usr/lib/systemd/systemd-machined
root         114       1  0 09:39 pts/0    00:00:00 /bin/bash -l
root         117       1  0 09:39 ?        00:00:00 /usr/lib/systemd/systemd --user
root         118     117  0 09:39 ?        00:00:00 (sd-pam)
root         129     114  0 09:39 pts/0    00:00:00 (sd-pam)
root         151     114  0 09:41 pts/0    00:00:00 ps -ef

PID 1がsystemdになっている。これでsystemctlコマンドが使えるはず。

 

systemctlコマンド確認

動作する。

[root@EAGLEII-wsl ~]# systemctl status
● EAGLEII-wsl
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Fri 2022-02-18 09:38:03 JST; 5min ago
   CGroup: /
           ├─user.slice
           │ └─user-0.slice
           │   ├─session-c1.scope
           │   │ ├─114 /bin/bash -l
           │   │ ├─129 (sd-pam)
           │   │ ├─152 systemctl status
           │   │ └─153 (pager)
           │   └─user@0.service
           │     └─init.scope
           │       ├─117 /usr/lib/systemd/systemd --user
           │       └─118 (sd-pam)
           ├─init.scope
           │ └─1 systemd
           └─system.slice
             ├─systemd-journald.service
             │ └─30 /usr/lib/systemd/systemd-journald
             ├─sshd.service
             │ └─67 /usr/sbin/sshd -D -oCiphers=aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes256->
             ├─systemd-machined.service
             │ └─113 /usr/lib/systemd/systemd-machined
             ├─rsyslog.service
             │ └─37 /usr/sbin/rsyslogd -n
             ├─dbus.service

 

dockerのインストール

現在のリポジトリの確認

Dockerのリポジトリは無い

root@EAGLEII-wsl ~]# dnf repolist
repo id                                         repo name
ol8_appstream                                   Oracle Linux 8 Application Stream (x86_64)
ol8_baseos_latest                               Oracle Linux 8 BaseOS Latest (x86_64)

 

リポジトリの追加と確認

Docker CEのリポジトリが追加された。

[root@EAGLEII-wsl ~]# dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
[root@EAGLEII-wsl ~]# dnf repolist
repo id                                         repo name
docker-ce-stable                                Docker CE Stable - x86_64
ol8_appstream                                   Oracle Linux 8 Application Stream (x86_64)
ol8_baseos_latest                               Oracle Linux 8 BaseOS Latest (x86_64)

 

docker-ceパッケージのインストール (「--allowerasing」オプションをつけて、競合するpodmanとbuildahを置換)

参考にした手順では競合が発生して、この競合するpodmanとbuildahを置換しているが今回は一足飛びにオプション付きでインストールする。

[root@EAGLEII-wsl ~]# dnf install --allowerasing  docker-ce docker-ce-cli containerd.io
Docker CE Stable - x86_64                                                                54 kB/s |  19 kB     00:00
Dependencies resolved.
========================================================================================================================
 Package                          Arch       Version                                        Repository             Size
========================================================================================================================
Installing:
 containerd.io                    x86_64     1.4.12-3.1.el8                                 docker-ce-stable       28 M
 docker-ce                        x86_64     3:20.10.12-3.el8                               docker-ce-stable       22 M
 docker-ce-cli                    x86_64     1:20.10.12-3.el8                               docker-ce-stable       30 M
Installing dependencies:
 checkpolicy                      x86_64     2.9-1.el8                                      ol8_baseos_latest     346 k
 container-selinux                noarch     2:2.173.0-1.module+el8.5.0+20494+0311868c      ol8_appstream          57 k
 docker-ce-rootless-extras        x86_64     20.10.12-3.el8                                 docker-ce-stable      4.6 M
 docker-scan-plugin               x86_64     0.12.0-3.el8                                   docker-ce-stable      3.7 M
 fuse-common                      x86_64     3.2.1-12.0.3.el8                               ol8_baseos_latest      22 k
 fuse-overlayfs                   x86_64     1.8-1.module+el8.5.0+20494+0311868c            ol8_appstream          73 k
 fuse3                            x86_64     3.2.1-12.0.3.el8                               ol8_baseos_latest      51 k
 fuse3-libs                       x86_64     3.2.1-12.0.3.el8                               ol8_baseos_latest      95 k
 hwdata                           noarch     0.314-8.10.el8                                 ol8_baseos_latest     1.7 M
 iptables                         x86_64     1.8.4-20.0.1.el8                               ol8_baseos_latest     585 k
 iptables-libs                    x86_64     1.8.4-20.0.1.el8                               ol8_baseos_latest     107 k
 kmod                             x86_64     25-18.0.1.el8                                  ol8_baseos_latest     126 k
 libcgroup                        x86_64     0.41-19.el8                                    ol8_baseos_latest      70 k
 libibverbs                       x86_64     35.0-1.el8                                     ol8_baseos_latest     335 k
 libnetfilter_conntrack           x86_64     1.0.6-5.el8                                    ol8_baseos_latest      65 k
 libnfnetlink                     x86_64     1.0.1-13.el8                                   ol8_baseos_latest      33 k
 libnftnl                         x86_64     1.1.5-4.el8                                    ol8_baseos_latest      83 k
 libnl3                           x86_64     3.5.0-1.el8                                    ol8_baseos_latest     323 k
 libpcap                          x86_64     14:1.9.1-5.el8                                 ol8_baseos_latest     169 k
 libslirp                         x86_64     4.4.0-1.module+el8.5.0+20416+d687fed7          ol8_appstream          70 k
 pciutils                         x86_64     3.7.0-1.el8                                    ol8_baseos_latest     105 k
 pciutils-libs                    x86_64     3.7.0-1.el8                                    ol8_baseos_latest      54 k
 policycoreutils-python-utils     noarch     2.9-16.0.1.el8                                 ol8_baseos_latest     252 k
 python3-audit                    x86_64     3.0-0.17.20191104git1c2f876.el8                ol8_baseos_latest      86 k
 python3-libselinux               x86_64     2.9-5.el8                                      ol8_baseos_latest     283 k
 python3-libsemanage              x86_64     2.9-6.el8                                      ol8_baseos_latest     127 k
 python3-policycoreutils          noarch     2.9-16.0.1.el8                                 ol8_baseos_latest     2.2 M
 python3-setools                  x86_64     4.3.0-2.el8                                    ol8_baseos_latest     626 k
 rdma-core                        x86_64     35.0-1.el8                                     ol8_baseos_latest      59 k
 rpm-plugin-selinux               x86_64     4.14.3-19.el8_5.2                              ol8_baseos_latest      77 k
 selinux-policy                   noarch     3.14.3-80.0.4.el8_5.2                          ol8_baseos_latest     637 k
 selinux-policy-targeted          noarch     3.14.3-80.0.4.el8_5.2                          ol8_baseos_latest      15 M
 slirp4netns                      x86_64     1.1.8-1.module+el8.5.0+20416+d687fed7          ol8_appstream          51 k
 tar                              x86_64     2:1.30-5.el8                                   ol8_baseos_latest     838 k
 xz                               x86_64     5.2.4-3.el8                                    ol8_baseos_latest     153 k
Enabling module streams:
 container-tools                             ol8

Transaction Summary
========================================================================================================================
Install  38 Packages

Total download size: 114 M
Installed size: 456 M
Is this ok [y/N]: y
Downloading Packages:
(1/38): docker-ce-20.10.12-3.el8.x86_64.rpm                                             4.4 MB/s |  22 MB     00:04
(2/38): docker-ce-rootless-extras-20.10.12-3.el8.x86_64.rpm                             4.4 MB/s | 4.6 MB     00:01
(3/38): docker-scan-plugin-0.12.0-3.el8.x86_64.rpm                                      3.8 MB/s | 3.7 MB     00:00
(4/38): checkpolicy-2.9-1.el8.x86_64.rpm                                                1.0 MB/s | 346 kB     00:00
(5/38): fuse-common-3.2.1-12.0.3.el8.x86_64.rpm                                         451 kB/s |  22 kB     00:00
(6/38): fuse3-3.2.1-12.0.3.el8.x86_64.rpm                                               1.0 MB/s |  51 kB     00:00
(7/38): fuse3-libs-3.2.1-12.0.3.el8.x86_64.rpm                                          919 kB/s |  95 kB     00:00
(8/38): containerd.io-1.4.12-3.1.el8.x86_64.rpm                                         3.3 MB/s |  28 MB     00:08
(9/38): hwdata-0.314-8.10.el8.noarch.rpm                                                1.6 MB/s | 1.7 MB     00:01
(10/38): iptables-libs-1.8.4-20.0.1.el8.x86_64.rpm                                      1.3 MB/s | 107 kB     00:00
(11/38): kmod-25-18.0.1.el8.x86_64.rpm                                                  1.0 MB/s | 126 kB     00:00
(12/38): docker-ce-cli-20.10.12-3.el8.x86_64.rpm                                        3.3 MB/s |  30 MB     00:09
(13/38): iptables-1.8.4-20.0.1.el8.x86_64.rpm                                           1.1 MB/s | 585 kB     00:00
(14/38): libcgroup-0.41-19.el8.x86_64.rpm                                               225 kB/s |  70 kB     00:00
(15/38): libibverbs-35.0-1.el8.x86_64.rpm                                               3.4 MB/s | 335 kB     00:00
(16/38): libnfnetlink-1.0.1-13.el8.x86_64.rpm                                           491 kB/s |  33 kB     00:00
(17/38): libnftnl-1.1.5-4.el8.x86_64.rpm                                                2.0 MB/s |  83 kB     00:00
(18/38): libnetfilter_conntrack-1.0.6-5.el8.x86_64.rpm                                  505 kB/s |  65 kB     00:00
(19/38): libpcap-1.9.1-5.el8.x86_64.rpm                                                 3.4 MB/s | 169 kB     00:00
(20/38): pciutils-3.7.0-1.el8.x86_64.rpm                                                1.6 MB/s | 105 kB     00:00
(21/38): pciutils-libs-3.7.0-1.el8.x86_64.rpm                                           1.2 MB/s |  54 kB     00:00
(22/38): libnl3-3.5.0-1.el8.x86_64.rpm                                                  2.3 MB/s | 323 kB     00:00
(23/38): policycoreutils-python-utils-2.9-16.0.1.el8.noarch.rpm                         4.1 MB/s | 252 kB     00:00
(24/38): python3-audit-3.0-0.17.20191104git1c2f876.el8.x86_64.rpm                       1.5 MB/s |  86 kB     00:00
(25/38): python3-libselinux-2.9-5.el8.x86_64.rpm                                        1.8 MB/s | 283 kB     00:00
(26/38): python3-libsemanage-2.9-6.el8.x86_64.rpm                                       622 kB/s | 127 kB     00:00
(27/38): python3-policycoreutils-2.9-16.0.1.el8.noarch.rpm                              6.8 MB/s | 2.2 MB     00:00
(28/38): python3-setools-4.3.0-2.el8.x86_64.rpm                                         2.5 MB/s | 626 kB     00:00
(29/38): rpm-plugin-selinux-4.14.3-19.el8_5.2.x86_64.rpm                                1.4 MB/s |  77 kB     00:00
(30/38): rdma-core-35.0-1.el8.x86_64.rpm                                                230 kB/s |  59 kB     00:00
(31/38): tar-1.30-5.el8.x86_64.rpm                                                      2.3 MB/s | 838 kB     00:00
(32/38): xz-5.2.4-3.el8.x86_64.rpm                                                      1.9 MB/s | 153 kB     00:00
(33/38): container-selinux-2.173.0-1.module+el8.5.0+20494+0311868c.noarch.rpm           1.1 MB/s |  57 kB     00:00
(34/38): selinux-policy-3.14.3-80.0.4.el8_5.2.noarch.rpm                                1.0 MB/s | 637 kB     00:00
(35/38): fuse-overlayfs-1.8-1.module+el8.5.0+20494+0311868c.x86_64.rpm                  1.0 MB/s |  73 kB     00:00
(36/38): libslirp-4.4.0-1.module+el8.5.0+20416+d687fed7.x86_64.rpm                      790 kB/s |  70 kB     00:00
(37/38): slirp4netns-1.1.8-1.module+el8.5.0+20416+d687fed7.x86_64.rpm                   552 kB/s |  51 kB     00:00
(38/38): selinux-policy-targeted-3.14.3-80.0.4.el8_5.2.noarch.rpm                       8.1 MB/s |  15 MB     00:01
------------------------------------------------------------------------------------------------------------------------
Total                                                                                   9.8 MB/s | 114 MB     00:11
Docker CE Stable - x86_64                                                                30 kB/s | 1.6 kB     00:00
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) <docker@docker.com>"
 Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
 From       : https://download.docker.com/linux/centos/gpg
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                1/1
  Installing       : python3-libselinux-2.9-5.el8.x86_64                                                           1/38
  Installing       : docker-scan-plugin-0.12.0-3.el8.x86_64                                                        2/38
  Running scriptlet: docker-scan-plugin-0.12.0-3.el8.x86_64                                                        2/38
  Installing       : docker-ce-cli-1:20.10.12-3.el8.x86_64                                                         3/38
  Running scriptlet: docker-ce-cli-1:20.10.12-3.el8.x86_64                                                         3/38
  Installing       : libnl3-3.5.0-1.el8.x86_64                                                                     4/38
  Running scriptlet: libnl3-3.5.0-1.el8.x86_64                                                                     4/38
  Installing       : libnfnetlink-1.0.1-13.el8.x86_64                                                              5/38
  Running scriptlet: libnfnetlink-1.0.1-13.el8.x86_64                                                              5/38
  Installing       : libnetfilter_conntrack-1.0.6-5.el8.x86_64                                                     6/38
  Running scriptlet: libnetfilter_conntrack-1.0.6-5.el8.x86_64                                                     6/38
  Installing       : python3-libsemanage-2.9-6.el8.x86_64                                                          7/38
  Installing       : python3-setools-4.3.0-2.el8.x86_64                                                            8/38
  Installing       : rpm-plugin-selinux-4.14.3-19.el8_5.2.x86_64                                                   9/38
  Installing       : selinux-policy-3.14.3-80.0.4.el8_5.2.noarch                                                  10/38
  Running scriptlet: selinux-policy-3.14.3-80.0.4.el8_5.2.noarch                                                  10/38
  Running scriptlet: selinux-policy-targeted-3.14.3-80.0.4.el8_5.2.noarch                                         11/38
  Installing       : selinux-policy-targeted-3.14.3-80.0.4.el8_5.2.noarch                                         11/38
  Running scriptlet: selinux-policy-targeted-3.14.3-80.0.4.el8_5.2.noarch                                         11/38
  Installing       : libslirp-4.4.0-1.module+el8.5.0+20416+d687fed7.x86_64                                        12/38
  Installing       : slirp4netns-1.1.8-1.module+el8.5.0+20416+d687fed7.x86_64                                     13/38
  Installing       : xz-5.2.4-3.el8.x86_64                                                                        14/38
  Installing       : tar-2:1.30-5.el8.x86_64                                                                      15/38
  Running scriptlet: tar-2:1.30-5.el8.x86_64                                                                      15/38
  Installing       : python3-audit-3.0-0.17.20191104git1c2f876.el8.x86_64                                         16/38
  Installing       : pciutils-libs-3.7.0-1.el8.x86_64                                                             17/38
  Running scriptlet: pciutils-libs-3.7.0-1.el8.x86_64                                                             17/38
  Installing       : libnftnl-1.1.5-4.el8.x86_64                                                                  18/38
  Running scriptlet: libnftnl-1.1.5-4.el8.x86_64                                                                  18/38
  Running scriptlet: libcgroup-0.41-19.el8.x86_64                                                                 19/38
  Installing       : libcgroup-0.41-19.el8.x86_64                                                                 19/38
  Running scriptlet: libcgroup-0.41-19.el8.x86_64                                                                 19/38
  Installing       : kmod-25-18.0.1.el8.x86_64                                                                    20/38
  Installing       : hwdata-0.314-8.10.el8.noarch                                                                 21/38
  Installing       : pciutils-3.7.0-1.el8.x86_64                                                                  22/38
  Installing       : rdma-core-35.0-1.el8.x86_64                                                                  23/38
  Running scriptlet: rdma-core-35.0-1.el8.x86_64                                                                  23/38
  Installing       : libibverbs-35.0-1.el8.x86_64                                                                 24/38
  Running scriptlet: libibverbs-35.0-1.el8.x86_64                                                                 24/38
  Installing       : libpcap-14:1.9.1-5.el8.x86_64                                                                25/38
  Installing       : iptables-libs-1.8.4-20.0.1.el8.x86_64                                                        26/38
  Running scriptlet: iptables-1.8.4-20.0.1.el8.x86_64                                                             27/38
  Installing       : iptables-1.8.4-20.0.1.el8.x86_64                                                             27/38
  Running scriptlet: iptables-1.8.4-20.0.1.el8.x86_64                                                             27/38
  Installing       : fuse3-libs-3.2.1-12.0.3.el8.x86_64                                                           28/38
  Running scriptlet: fuse3-libs-3.2.1-12.0.3.el8.x86_64                                                           28/38
  Installing       : fuse-common-3.2.1-12.0.3.el8.x86_64                                                          29/38
  Installing       : fuse3-3.2.1-12.0.3.el8.x86_64                                                                30/38
  Installing       : fuse-overlayfs-1.8-1.module+el8.5.0+20494+0311868c.x86_64                                    31/38
  Running scriptlet: fuse-overlayfs-1.8-1.module+el8.5.0+20494+0311868c.x86_64                                    31/38
  Installing       : checkpolicy-2.9-1.el8.x86_64                                                                 32/38
  Installing       : python3-policycoreutils-2.9-16.0.1.el8.noarch                                                33/38
  Installing       : policycoreutils-python-utils-2.9-16.0.1.el8.noarch                                           34/38
  Running scriptlet: container-selinux-2:2.173.0-1.module+el8.5.0+20494+0311868c.noarch                           35/38
  Installing       : container-selinux-2:2.173.0-1.module+el8.5.0+20494+0311868c.noarch                           35/38
  Running scriptlet: container-selinux-2:2.173.0-1.module+el8.5.0+20494+0311868c.noarch                           35/38
  Installing       : containerd.io-1.4.12-3.1.el8.x86_64                                                          36/38
  Running scriptlet: containerd.io-1.4.12-3.1.el8.x86_64                                                          36/38
  Installing       : docker-ce-rootless-extras-20.10.12-3.el8.x86_64                                              37/38
  Running scriptlet: docker-ce-rootless-extras-20.10.12-3.el8.x86_64                                              37/38
  Installing       : docker-ce-3:20.10.12-3.el8.x86_64                                                            38/38
  Running scriptlet: docker-ce-3:20.10.12-3.el8.x86_64                                                            38/38
  Running scriptlet: container-selinux-2:2.173.0-1.module+el8.5.0+20494+0311868c.noarch                           38/38
  Running scriptlet: docker-ce-3:20.10.12-3.el8.x86_64                                                            38/38
  Verifying        : containerd.io-1.4.12-3.1.el8.x86_64                                                           1/38
  Verifying        : docker-ce-3:20.10.12-3.el8.x86_64                                                             2/38
  Verifying        : docker-ce-cli-1:20.10.12-3.el8.x86_64                                                         3/38
  Verifying        : docker-ce-rootless-extras-20.10.12-3.el8.x86_64                                               4/38
  Verifying        : docker-scan-plugin-0.12.0-3.el8.x86_64                                                        5/38
  Verifying        : checkpolicy-2.9-1.el8.x86_64                                                                  6/38
  Verifying        : fuse-common-3.2.1-12.0.3.el8.x86_64                                                           7/38
  Verifying        : fuse3-3.2.1-12.0.3.el8.x86_64                                                                 8/38
  Verifying        : fuse3-libs-3.2.1-12.0.3.el8.x86_64                                                            9/38
  Verifying        : hwdata-0.314-8.10.el8.noarch                                                                 10/38
  Verifying        : iptables-1.8.4-20.0.1.el8.x86_64                                                             11/38
  Verifying        : iptables-libs-1.8.4-20.0.1.el8.x86_64                                                        12/38
  Verifying        : kmod-25-18.0.1.el8.x86_64                                                                    13/38
  Verifying        : libcgroup-0.41-19.el8.x86_64                                                                 14/38
  Verifying        : libibverbs-35.0-1.el8.x86_64                                                                 15/38
  Verifying        : libnetfilter_conntrack-1.0.6-5.el8.x86_64                                                    16/38
  Verifying        : libnfnetlink-1.0.1-13.el8.x86_64                                                             17/38
  Verifying        : libnftnl-1.1.5-4.el8.x86_64                                                                  18/38
  Verifying        : libnl3-3.5.0-1.el8.x86_64                                                                    19/38
  Verifying        : libpcap-14:1.9.1-5.el8.x86_64                                                                20/38
  Verifying        : pciutils-3.7.0-1.el8.x86_64                                                                  21/38
  Verifying        : pciutils-libs-3.7.0-1.el8.x86_64                                                             22/38
  Verifying        : policycoreutils-python-utils-2.9-16.0.1.el8.noarch                                           23/38
  Verifying        : python3-audit-3.0-0.17.20191104git1c2f876.el8.x86_64                                         24/38
  Verifying        : python3-libselinux-2.9-5.el8.x86_64                                                          25/38
  Verifying        : python3-libsemanage-2.9-6.el8.x86_64                                                         26/38
  Verifying        : python3-policycoreutils-2.9-16.0.1.el8.noarch                                                27/38
  Verifying        : python3-setools-4.3.0-2.el8.x86_64                                                           28/38
  Verifying        : rdma-core-35.0-1.el8.x86_64                                                                  29/38
  Verifying        : rpm-plugin-selinux-4.14.3-19.el8_5.2.x86_64                                                  30/38
  Verifying        : selinux-policy-3.14.3-80.0.4.el8_5.2.noarch                                                  31/38
  Verifying        : selinux-policy-targeted-3.14.3-80.0.4.el8_5.2.noarch                                         32/38
  Verifying        : tar-2:1.30-5.el8.x86_64                                                                      33/38
  Verifying        : xz-5.2.4-3.el8.x86_64                                                                        34/38
  Verifying        : container-selinux-2:2.173.0-1.module+el8.5.0+20494+0311868c.noarch                           35/38
  Verifying        : fuse-overlayfs-1.8-1.module+el8.5.0+20494+0311868c.x86_64                                    36/38
  Verifying        : libslirp-4.4.0-1.module+el8.5.0+20416+d687fed7.x86_64                                        37/38
  Verifying        : slirp4netns-1.1.8-1.module+el8.5.0+20416+d687fed7.x86_64                                     38/38

Installed:
  checkpolicy-2.9-1.el8.x86_64
  container-selinux-2:2.173.0-1.module+el8.5.0+20494+0311868c.noarch
  containerd.io-1.4.12-3.1.el8.x86_64
  docker-ce-3:20.10.12-3.el8.x86_64
  docker-ce-cli-1:20.10.12-3.el8.x86_64
  docker-ce-rootless-extras-20.10.12-3.el8.x86_64
  docker-scan-plugin-0.12.0-3.el8.x86_64
  fuse-common-3.2.1-12.0.3.el8.x86_64
  fuse-overlayfs-1.8-1.module+el8.5.0+20494+0311868c.x86_64
  fuse3-3.2.1-12.0.3.el8.x86_64
  fuse3-libs-3.2.1-12.0.3.el8.x86_64
  hwdata-0.314-8.10.el8.noarch
  iptables-1.8.4-20.0.1.el8.x86_64
  iptables-libs-1.8.4-20.0.1.el8.x86_64
  kmod-25-18.0.1.el8.x86_64
  libcgroup-0.41-19.el8.x86_64
  libibverbs-35.0-1.el8.x86_64
  libnetfilter_conntrack-1.0.6-5.el8.x86_64
  libnfnetlink-1.0.1-13.el8.x86_64
  libnftnl-1.1.5-4.el8.x86_64
  libnl3-3.5.0-1.el8.x86_64
  libpcap-14:1.9.1-5.el8.x86_64
  libslirp-4.4.0-1.module+el8.5.0+20416+d687fed7.x86_64
  pciutils-3.7.0-1.el8.x86_64
  pciutils-libs-3.7.0-1.el8.x86_64
  policycoreutils-python-utils-2.9-16.0.1.el8.noarch
  python3-audit-3.0-0.17.20191104git1c2f876.el8.x86_64
  python3-libselinux-2.9-5.el8.x86_64
  python3-libsemanage-2.9-6.el8.x86_64
  python3-policycoreutils-2.9-16.0.1.el8.noarch
  python3-setools-4.3.0-2.el8.x86_64
  rdma-core-35.0-1.el8.x86_64
  rpm-plugin-selinux-4.14.3-19.el8_5.2.x86_64
  selinux-policy-3.14.3-80.0.4.el8_5.2.noarch
  selinux-policy-targeted-3.14.3-80.0.4.el8_5.2.noarch
  slirp4netns-1.1.8-1.module+el8.5.0+20416+d687fed7.x86_64
  tar-2:1.30-5.el8.x86_64
  xz-5.2.4-3.el8.x86_64

Complete!

うまくいった。

 

Dockerインストールの確認

インストールされている。

[root@EAGLEII-wsl ~]# dnf list installed | grep docker-ce
containerd.io.x86_64                  1.4.12-3.1.el8                            @docker-ce-stable
docker-ce.x86_64                      3:20.10.12-3.el8                          @docker-ce-stable
docker-ce-cli.x86_64                  1:20.10.12-3.el8                          @docker-ce-stable
docker-ce-rootless-extras.x86_64      20.10.12-3.el8                            @docker-ce-stable
docker-scan-plugin.x86_64             0.12.0-3.el8                              @docker-ce-stable

 

Dockerの起動と自動起動

起動に失敗した。

[root@EAGLEII-wsl ~]# systemctl start docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.

 

enableする。こちらは成功。

[root@EAGLEII-wsl ~]# systemctl enable docker
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
[root@EAGLEII-wsl ~]# systemctl is-enabled docker
enabled

 

もう一度起動するが失敗。そこで”See "systemctl status docker.service"と書いてあるので実行してみる。

[root@EAGLEII-wsl ~]# systemctl start docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
[root@EAGLEII-wsl ~]# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2022-02-18 10:08:04 JST; 8s ago
     Docs: https://docs.docker.com
  Process: 19987 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=>
 Main PID: 19987 (code=exited, status=1/FAILURE)

Feb 18 10:08:04 EAGLEII-wsl systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.
Feb 18 10:08:04 EAGLEII-wsl systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Feb 18 10:08:04 EAGLEII-wsl systemd[1]: Stopped Docker Application Container Engine.
Feb 18 10:08:04 EAGLEII-wsl systemd[1]: docker.service: Start request repeated too quickly.
Feb 18 10:08:04 EAGLEII-wsl systemd[1]: docker.service: Failed with result 'exit-code'.
Feb 18 10:08:04 EAGLEII-wsl systemd[1]: Failed to start Docker Application Container Engine.

 

インストールまではうまく行ったけど、起動できない。長くなったので続きはまた。

 

お時間あったら、他のエントリもクリックして頂ければ幸いです。