With Snyk, you can test, monitor and protect your container images directly from the CLI as follows:
-
To test for vulnerabilities and to receive relevant vulnerability details:
Run
snyk test --docker myapp:mytag
.For example, from the CLI enter the following:
snyk test --docker ubuntu:latest
-
To test the image for vulnerabilities, to receive vulnerability details, and to receive base image remediation advice for your Dockerfile, from the CLI only:
Run
snyk test --docker myapp:mytag --file=path/to/Dockerfile
.For example, from the CLI enter the following:
snyk test --docker ubuntu:latest --file=Dockerfile
-
To test the image for vulnerabilities, to receive vulnerability details, to receive base image remediation advice for your Dockerfile, and to also import a snapshot to Snyk UI for continuous monitoring:
Run
snyk monitor --docker myapp:mytag --file=path/to/Dockerfile
.For example, from the CLI enter the following:
snyk monitor --docker ubuntu:latest --file=Dockerfile
Comments
0 comments
Article is closed for comments.