Skip to content

Commit 565df40

Browse files
committed
feat: Add platform details to help for snyk container
The snyk container CLI now supports passing an explicit platform value. This will then test the image with that platform, rather than just the default (probably amd64).
1 parent 7388695 commit 565df40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

help/container.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Options:
1616
--file=<string> ......................... Include the path to the image's Dockerfile for more detailed advice.
1717
-h, --help
1818
--json
19+
--platform=<string> ..................... For multi-architecture images, specify the platform to test. Options are:
20+
[linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x,
21+
linux/386, linux/arm/v7 orlinux/arm/v6]
1922
--print-deps ............................ Print the dependency tree before sending it for analysis.
2023
--project-name=<string> ................. Specify a custom Snyk project name.
2124
--policy-path=<path> .................... Manually pass a path to a snyk policy file.
@@ -24,6 +27,7 @@ Options:
2427
Examples:
2528

2629
$ snyk container test alpine
30+
$ snyk container test --platform=linux/arm64 debian
2731
$ snyk container monitor alpine
2832
$ snyk container test docker-archive:archive.tar
2933
$ snyk container test oci-archive:archive.tar

0 commit comments

Comments
 (0)