Container Env: installing plugin on the base image : ghcr.io/aquasecurity/trivy:0.56.1 #106
-
issue: checked the file: permission and file exist, but unable to run . |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Thanks for the issue, we will check and revert back to you |
Beta Was this translation helpful? Give feedback.
-
Hi @kabilanmani93 , @princechennai ; Thanks for your patience. At last, we got to the bottom of it. Basically, scan2html requires bash which doesn't come with the base image of trivy. So we need to install it as shown below. Please try and let me know docker run --rm |
Beta Was this translation helpful? Give feedback.
Hi @kabilanmani93 , @princechennai ;
Thanks for your patience. At last, we got to the bottom of it. Basically, scan2html requires bash which doesn't come with the base image of trivy. So we need to install it as shown below. Please try and let me know
docker run --rm
-v /var/run/docker.sock:/var/run/docker.sock
-v $(pwd):/output
--entrypoint /bin/sh
aquasec/trivy:0.56.2 -c "apk update && apk add bash && bash -c 'trivy plugin run scan2html image nginx:latest /output/report.html'"