Updated Harbor FAQs (markdown)

Shengwen YU 2023-04-04 09:52:59 +08:00
parent 08bd02a6f7
commit cf721be9ed
1 changed files with 2 additions and 0 deletions

@ -330,6 +330,7 @@ By default, notary is using `~/.docker/trust` as the local cache directory.
## Trivy in Air-Gapped Environment
**Trivy Version >= v0.23.0**
1. Install the harbor with `skip_update=true` and `offline_scan=true` for the trivy configuration.
2. Download the vulnerability database and put the DB file in Trivy's cache directory
> For the harbor installed by the Harbor offline-installer
@ -343,6 +344,7 @@ docker exec -u scanner trivy-adapter rm -rf $TRIVY_TEMP_DIR
```
**Trivy Version <= v0.22.0**
The trivy scanner can be used in air-gapped environments. The following is the steps.
1. Install the harbor with `skip_update=true` and `offline_scan=true` for the trivy configuration.
2. Download the vulnerability database