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

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

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


WSL2のOracle Linux 8.5にDocker その1

WSLでOracle Linux 8.5をインストールした。

 

shigeo-t.hatenablog.com

 

これまでの経緯

Oracle Linux 7.9でDockerを動かそうとしたが色々問題があった。結局動いていない。

shigeo-t.hatenablog.com

shigeo-t.hatenablog.com


動いていない問題の1つはsystemctlが動かないので起動できない、2つめはなぜかインストールに失敗する。Oracle Linux 7.9ではsystemctlは対策できた。

 

そこでOracle Linux 8.5では先にsystemctlから片付けることにした。systemctlはDockerだけの問題じゃないし。

 

systemcrlの確認

まずsystemctlを動かしてみる。

[shigeo@EAGLEII shigeo-t]$ sudo systemctl status
[sudo] password for shigeo:
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

 

Oracle Linux 7.9とはメッセージが異なる。systemdがPID 1じゃないエラーである。これはUbuntuの増殖版の時に見た。

shigeo-t.hatenablog.com

 

genieのインストール

調べてみるとgenieを使うのは同じようなのだが、Debian/Ubuntu系とRHEL系ではコマンドが異なる可能性がある。CentOS 8の手順を見つけた。

go-journey.club

 

例ではv1.36としているが、

wget https://github.com/arkane-systems/genie/releases/download/v1.36/genie-1.36-1.fc33.x86_64.rpm

バージョンを調べてみる。

github.com

f:id:shigeo-t:20220215093633p:plain

 

ということで、wgetはv1.44で実施。

[shigeo@EAGLEII shigeo-t]$ sudo su -
[sudo] password for shigeo:
[root@EAGLEII ~]# cd /tmp
[root@EAGLEII tmp]# wget https://github.com/arkane-systems/genie/releases/download/v1.44/genie-1.44-1.fc34.x86_64.rpm
--2022-02-15 09:37:30--  https://github.com/arkane-systems/genie/releases/download/v1.44/genie-1.44-1.fc34.x86_64.rpm
Resolving github.com (github.com)... 52.69.186.44
Connecting to github.com (github.com)|52.69.186.44|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/192089662/580ccae5-942a-4693-8d02-0670656bc2d7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220215%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220215T003729Z&X-Amz-Expires=300&X-Amz-Signature=d0b74de2b0ed99134b73592b29eae9efec3c9c7ddd049da493f5d36d88006ebe&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=192089662&response-content-disposition=attachment%3B%20filename%3Dgenie-1.44-1.fc34.x86_64.rpm&response-content-type=application%2Foctet-stream [following]
--2022-02-15 09:37:30--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/192089662/580ccae5-942a-4693-8d02-0670656bc2d7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220215%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220215T003729Z&X-Amz-Expires=300&X-Amz-Signature=d0b74de2b0ed99134b73592b29eae9efec3c9c7ddd049da493f5d36d88006ebe&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=192089662&response-content-disposition=attachment%3B%20filename%3Dgenie-1.44-1.fc34.x86_64.rpm&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 560115 (547K) [application/octet-stream]
Saving to: 'genie-1.44-1.fc34.x86_64.rpm'

genie-1.44-1.fc34.x86_64.rpm  100%[=================================================>] 546.99K  --.-KB/s    in 0.05s

2022-02-15 09:37:31 (9.76 MB/s) - 'genie-1.44-1.fc34.x86_64.rpm' saved [560115/560115]

 

dnfコマンドでインストール。

[root@EAGLEII tmp]# dnf install genie-1.44-1.fc34.x86_64.rpm
Last metadata expiration check: 1 day, 6:25:45 ago on Mon Feb 14 03:13:49 2022.
Error:
 Problem: conflicting requests
  - nothing provides daemonize needed by genie-1.44-1.fc34.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

エラーである。daemonizeが見つからないって言ってる。Ubuntuの時はdaemonizeのインストールはできた。

 

手順は見つけた。

www.tomoyan.net

 

コマンドは

$ sudo dnf install git make hostname systemd-container dnf-plugins-core daemonize dotnet-sdk-5.0 -y

であるがdaemonizeは失敗する。gitやmakeなどdaemonize以外を実行し、うまくいったあとにdaemonizeだけで実行してみる。やはりメッセージは同じ。

[root@EAGLEII tmp]# dnf install daemonize -y
Last metadata expiration check: 1 day, 6:51:42 ago on Mon Feb 14 03:13:49 2022.
No match for argument: daemonize
Error: Unable to find a match: daemonize

 

検索するとdaemonizeのページはヒットする。でもここから直ダウンロードできない。

https://centos.pkgs.org/8/okey-x86_64/daemonize-1.7.8-1.el8.x86_64.rpm.html

スクロールするとDownloadがある。

f:id:shigeo-t:20220215101511p:plain

 

wgetしてdnfでインストール。

[root@EAGLEII tmp]# wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/d/daemonize-1.7.8-1.el8.x86_64.rpm
--2022-02-15 10:13:44--  https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/d/daemonize-1.7.8-1.el8.x86_64.rpm
Resolving download-ib01.fedoraproject.org (download-ib01.fedoraproject.org)... 152.19.134.145, 2600:2701:4000:5211:dead:beef:fe:fed6
Connecting to download-ib01.fedoraproject.org (download-ib01.fedoraproject.org)|152.19.134.145|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27692 (27K) [application/x-rpm]
Saving to: 'daemonize-1.7.8-1.el8.x86_64.rpm'

daemonize-1.7.8-1.el8.x86_64. 100%[=================================================>]  27.04K   158KB/s    in 0.2s

2022-02-15 10:13:45 (158 KB/s) - 'daemonize-1.7.8-1.el8.x86_64.rpm' saved [27692/27692]

[root@EAGLEII tmp]# dnf install daemonize-1.7.8-1.el8.x86_64.rpm -y
Last metadata expiration check: 1 day, 7:00:12 ago on Mon Feb 14 03:13:49 2022.
Dependencies resolved.
========================================================================================================================
 Package                    Architecture            Version                         Repository                     Size
========================================================================================================================
Installing:
 daemonize                  x86_64                  1.7.8-1.el8                     @commandline                   27 k

Transaction Summary
========================================================================================================================
Install  1 Package

Total size: 27 k
Installed size: 34 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                1/1
  Installing       : daemonize-1.7.8-1.el8.x86_64                                                                   1/1
  Running scriptlet: daemonize-1.7.8-1.el8.x86_64                                                                   1/1
  Verifying        : daemonize-1.7.8-1.el8.x86_64                                                                   1/1

Installed:
  daemonize-1.7.8-1.el8.x86_64

Complete!

 

もう一genieのインストールにチャレンジ。

[root@EAGLEII tmp]# dnf install genie-1.44-1.fc34.x86_64.rpm  -y
Last metadata expiration check: 1 day, 7:03:08 ago on Mon Feb 14 03:13:49 2022.
Dependencies resolved.
========================================================================================================================
 Package                 Architecture             Version                          Repository                      Size
========================================================================================================================
Installing:
 genie                   x86_64                   1.44-1.fc34                      @commandline                   547 k

Transaction Summary
========================================================================================================================
Install  1 Package

Total size: 547 k
Installed size: 1.8 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                1/1
  Installing       : genie-1.44-1.fc34.x86_64                                                                       1/1
  Running scriptlet: genie-1.44-1.fc34.x86_64                                                                       1/1
  Verifying        : genie-1.44-1.fc34.x86_64                                                                       1/1

Installed:
  genie-1.44-1.fc34.x86_64

Complete!

 

genieが準備できたところで力尽きた。続きは次回。

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