Skip to content

Container Env: installing plugin on the base image : ghcr.io/aquasecurity/trivy:0.56.1 #106

Answered by fatihtokus
kabilanmani93 asked this question in Q&A
Discussion options

You must be logged in to vote

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'"

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@princechennai
Comment options

Comment options

You must be logged in to vote
2 replies
@princechennai
Comment options

@fatihtokus
Comment options

Answer selected by fatihtokus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants