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
Other Commands: docker build -t grype:v1 . docker save grype:v1 -o image.tar docker run -it --rm -v $(pwd):/src/ grype:v1 /src/image.tar Anything else we need to know?:
Maybe i did miss something and grype needs docker components, even for scanning a tar file? It would be helpful if you add requirements for grype in the README :). Environment:
HI @Overcolor, I'm not able to reproduce this yet...
You're correct, Grype doesn't need access to the Docker daemon if it's scanning an image that's available as a TAR file on the local filesystem.
Can you provide the exact command you ran that produced the output you pasted above? (panic: runtime error: invalid memory address or nil pointer dereference ...) Clearly, there's something that Grype didn't like in that scenario. 😃
From the stack trace, this seems related to #235, which was triggered by telling Grype to read in an SBOM instead of scanning an actual container image.
I could not reproduce it with version 0.8.0. The commands i used are placed under "Other commands:" . The only possible difference is an user, which was in the analyzed image. Everything is working now like expected ^^ i am not really sure what went wrong, if i find it i will add this here.
Thanks for the fast response :)
What happened:
I tried to run grype in a Dockerimage, but it resulted with this segmentation violation:
What you expected to happen:
I expected the grype-vulnerability-report.
How to reproduce it (as minimally and precisely as possible):
Dockerfile:
Other Commands:
docker build -t grype:v1 .
docker save grype:v1 -o image.tar
docker run -it --rm -v $(pwd):/src/ grype:v1 /src/image.tar
Anything else we need to know?:
Maybe i did miss something and grype needs docker components, even for scanning a tar file? It would be helpful if you add requirements for grype in the README :).
Environment:
grype version
:Application: grype
Version: 0.7.0
BuildDate: 2021-01-28T14:03:23Z
GitCommit: 8344b8f
GitTreeState: clean
Platform: linux/amd64
GoVersion: go1.14.14
Compiler: gc
Supported DB Schema: 1
cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: