Skip to content

Commit

Permalink
docs: improve formatting (#2572)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbodenmiller authored Jul 31, 2022
1 parent d0ca610 commit ea91fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/advanced/air-gap.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $ rm /path/to/db.tar.gz

In an air-gapped environment it is your responsibility to update the Trivy database on a regular basis, so that the scanner can detect recently-identified vulnerabilities.

### Run Trivy with --skip-update and --offline-scan option
### Run Trivy with `--skip-update` and `--offline-scan` option
In an air-gapped environment, specify `--skip-update` so that Trivy doesn't attempt to download the latest database file.
In addition, if you want to scan Java dependencies such as JAR and pom.xml, you need to specify `--offline-scan` since Trivy tries to issue API requests for scanning Java applications by default.

Expand All @@ -75,7 +75,7 @@ $ trivy image --skip-update --offline-scan alpine:3.12

No special measures are required to detect misconfigurations in an air-gapped environment.

### Run Trivy with --skip-policy-update option
### Run Trivy with `--skip-policy-update` option
In an air-gapped environment, specify `--skip-policy-update` so that Trivy doesn't attempt to download the latest misconfiguration policies.

```
Expand Down

0 comments on commit ea91fb9

Please sign in to comment.