Harbor registry CVE-Scan not working » Historie » Zyklus 1
Peter Pfläging, 30.07.2021 14:13
1 | 1 | Peter Pfläging | # Harbor registry CVE-Scan not working |
---|---|---|---|
2 | |||
3 | Trivy in Harbor is not working and reporting DNS errors. |
||
4 | |||
5 | Environment: |
||
6 | |||
7 | - Fedora 34 |
||
8 | - moby-engine-20.10 |
||
9 | |||
10 | There's a problem with name resolution! Workaround: |
||
11 | |||
12 | Create a config file with the DNS servers `/etc/docker/daemon.json` |
||
13 | |||
14 | ```json |
||
15 | { |
||
16 | "dns":["8.8.8.8", "8.8.4.4"] |
||
17 | } |
||
18 | ``` |
||
19 | |||
20 | then restart docker with `systemctl restart docker` and your gone ;-) |