前提・実現したいこと
CentOS8に,Dockerを用いてVulsをインストールしようとしています.
CentOS8からはDockerが非推奨となり,代わりにPodmanを使用するようにとのことで,PodmanとPodman-dockerパッケージを使用してDockerコマンドでPodmanが使用されるようにしました.
発生している問題・エラーメッセージ
まずはこちらを参照し,コンテナのpull,run(各コンテナのバージョンの確認)まで行いました.
Install with Docker
ここまでは問題なく動作しており,go-cve-dictionary・goval-dictional・gost・vulsともにバージョンが表示されることを確認できています.
次にこちらのページに移動し,NVDを取得しようとしたときに問題が発生しました.
Tutorial - Scan using Docker
######Step0
作業ディレクトリをホームディレクトリとし,指示の通りgo-cve-dictionary-log
goval-dictionary-log
gost-log
go-exploitdb-log
ディレクトリを作成しました.(Vuls用のユーザを作成しています.)
######Step1
NVDを取得しようと,以下のコマンドを実行しました.
for i in `seq 2002 $(date +"%Y")`; do \ docker run --rm -it \ -v $PWD:/vuls \ -v $PWD/go-cve-dictionary-log:/var/log/vuls \ vuls/go-cve-dictionary fetchnvd -years $i; \ done
すると,以下のエラーが出力されました.
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:28:58] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:28:58] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:28:58] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:28:58] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:28:59] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:28:59] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:00] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:00] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:00] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:00] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:01] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:01] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:01] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:01] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:02] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:02] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:03] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:03] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:03] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:03] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:04] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:04] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:04] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:04] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:05] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:05] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:06] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:06] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:06] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:06] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:07] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:07] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:08] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:08] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:08] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:08] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. EROR[06-27|06:29:09] Failed to create a log file err="open /var/log/vuls/cve-dictionary.log: permission denied" EROR[06-27|06:29:09] Failed to open DB. dbtype: sqlite3, dbpath: /vuls/cve.sqlite3, err: unable to open database file
試したこと
sudo su
でルートユーザになってから実行してみましたが,同様のエラーが出力されました.
補足情報
CentOS Linux release 8.2.2004 (Core)
Ryzen 5 Pro 3400GE
podman 1.6.4
podman-docker 1.6.4-10
vuls v0.9.9 build-20200624_020107_72457cb
gost 720b82e
goval-dictionary v0.2.8 71b5469
go-cve-dictionary v0.5.0 5a913f5
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。