You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the `--max-image-size` flag to avoid scanning images that exceed a specified size. The size is specified in a human-readable format (e.g., `100MB`, `10GB`). If the compressed image size exceeds the specified threshold, an error is returned immediately. Otherwise, all layers are pulled, stored in a temporary folder, and their uncompressed size is verified before scanning. Temporary layers are always cleaned up, even after a successful scan.
529
+
Use the `--max-image-size` flag to avoid scanning images that exceed a specified size. The size is specified in a human-readable format[^1] (e.g., `100MB`, `10GB`).
530
+
531
+
An error is returned in the following cases:
532
+
533
+
- if the compressed image size exceeds the limit,
534
+
- if the accumulated size of the uncompressed layers exceeds the limit during their pulling.
535
+
536
+
The layers are pulled into a temporary folder during their pulling and are always cleaned up, even after a successful scan.
530
537
531
538
!!! warning "EXPERIMENTAL"
532
539
This feature might change without preserving backwards compatibility.
@@ -542,3 +549,5 @@ Error Output:
542
549
```bash
543
550
Error: uncompressed image size (15GB) exceeds maximum allowed size (10GB)
544
551
```
552
+
553
+
[^1]: Trivy uses decimal (SI) prefixes (based on 1000) for size.
0 commit comments