0

我使用以下命令行在 Linux 服务器上安装了Harbor注册表:

sudo ./install.sh --with-clair --with-chartmuseum

该实例在 HTTPS 中运行,我完全能够使用 Docker 推送和拉取图像。

不工作的是漏洞扫描程序。Clair扫描器永远不会被触发(即使是手动),并且在/var/log/harbor/clair.log日志文件中可以看到以下错误:

Sep 28 12:56:07 172.20.0.1 clair[56808]: {"Event":"could not download mirror list","Level":"error","Location":"amzn.go:180","Time":"2021-09-28 12:56:07.932791","error":"Get https://cdn.amazonlinux.com/2/core/latest/x86_64/mirror.list: dial tcp: lookup cdn.amazonlinux.com: Temporary failure in name resolution"}
Sep 28 12:56:07 172.20.0.1 clair[56808]: {"Event":"an error occured when fetching update","Level":"error","Location":"updater.go:246","Time":"2021-09-28 12:56:07.932904","error":"could not download requested resource","updater name":"amzn2"}
Sep 28 12:56:08 172.20.0.1 clair[56808]: {"Event":"could not pull ubuntu-cve-tracker repository","Level":"error","Location":"ubuntu.go:174","Time":"2021-09-28 12:56:08.018159","error":"exit status 128","output":"Cloning into '.'...\nfatal: unable to access 'https://git.launchpad.net/ubuntu-cve-tracker/': Could not resolve host: git.launchpad.net\n"}
Sep 28 12:56:08 172.20.0.1 clair[56808]: {"Event":"an error occured when fetching update","Level":"error","Location":"updater.go:246","Time":"2021-09-28 12:56:08.018293","error":"could not download requested resource","updater name":"ubuntu"}
Sep 28 12:56:08 172.20.0.1 clair[56808]: {"Event":"could not pull alpine-secdb repository","Level":"error","Location":"alpine.go:186","Time":"2021-09-28 12:56:08.021551","error":"exit status 128","output":"Cloning into '.'...\nfatal: unable to access 'https://github.com/alpinelinux/alpine-secdb/': Could not resolve host: github.com\n"}

Sep 28 12:58:18 172.20.0.1 clair[56808]: {"Event":"could not get NVD data feed hash","Level":"warning","Location":"nvd.go:137","Time":"2021-09-28 12:58:18.133500","data feed name":"2014","error":"Get https://nvd.nist.gov/feeds/xml/cve/2.0/nvdcve-2.0-2014.meta: dial tcp: lookup nvd.nist.gov: Temporary failure in name resolution"}
Sep 28 12:58:28 172.20.0.1 clair[56808]: {"Event":"could not get NVD data feed hash","Level":"warning","Location":"nvd.go:137","Time":"2021-09-28 12:58:28.140497","data feed name":"2015","error":"Get https://nvd.nist.gov/feeds/xml/cve/2.0/nvdcve-2.0-2015.meta: dial tcp: lookup nvd.nist.gov: Temporary failure in name resolution"}
Sep 28 12:58:38 172.20.0.1 clair[56808]: {"Event":"could not get NVD data feed hash","Level":"warning","Location":"nvd.go:137","Time":"2021-09-28 12:58:38.149921","data feed name":"2016","error":"Get https://nvd.nist.gov/feeds/xml/cve/2.0/nvdcve-2.0-2016.meta: dial tcp: lookup nvd.nist.gov: Temporary failure in name resolution"}

有没有我错过的配置?

4

0 回答 0