Skip to content

Commit 275616e

Browse files
authored
Merge pull request #173 from docker/document-vulnerability-warnings
Document how to disable the vulnerability warnings
2 parents 84a3ef0 + 8a7094b commit 275616e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

FAQ.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ Please refer to [this blog post](https://www.docker.com/blog/docker-dx-extension
1212

1313
For information regarding telemetry, please refer to [TELEMETRY.md](./TELEMETRY.md).
1414

15+
### How can I disable warnings related to vulnerabilities in images?
16+
17+
To disable everything, you can set the `docker.lsp.experimental.vulnerabilityScanning` setting to `false`.
18+
19+
If you would like to disable specific warnings about vulnerabilities, you can opt in or out of them individually as well.
20+
21+
- `docker.lsp.experimental.scout.criticalHighVulnerabilities`
22+
- `docker.lsp.experimental.scout.notPinnedDigest`
23+
- `docker.lsp.experimental.scout.recommendedTag`
24+
- `docker.lsp.experimental.scout.vulnerabilities`
25+
1526
### I am seeing duplicated editor features (such as code completion suggestions, hover tooltips, etc.) in Compose files.
1627

1728
Do you have any of the following extensions installed?

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you are on an unsupported system, let us know of your interest in this extens
3030

3131
You can get linting checks from [BuildKit](https://github.com/moby/buildkit) and [BuildX](https://github.com/docker/buildx) when editing your Dockerfiles.
3232

33-
Any references to images with vulnerabilities are also flagged. Note: This is an experimental feature.
33+
Any references to images with vulnerabilities are also flagged. This is an **experimental** feature and may change in the future. Refer to our [FAQ.md](./FAQ.md) to see how you can opt in or out of these warnings.
3434

3535
Errors are visible directly in your editor or you can look at them by opening up the Problems panel (<kbd>Ctrl+Shift+M</kbd> on Windows/Linux, <kbd>Shift+Command+M</kbd> on Mac).
3636

0 commit comments

Comments
 (0)