-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syft panics in docker and mounting docker socket with some images #2010
Comments
Hey @iperalta7, thanks for the report. I'm unable to reproduce this immediately on my system. (macOS Ventura 13.4.1, Docker Desktop 4.21.1). Can you open up Docker and go to Settings -> Advanced and tell us what your settings are? For example, I've attached mine. Thanks! |
Hmm, OK. I am not a Docker expert here but what do you see if you run the following?
|
With the help of an associate, I can say this is indeed more of a local issue. But even after reinstallation of both docker and syft, it still occurs. That command gives me: |
@iperalta7 Looks like you're on v0.85.0, try updating to at least v0.86.0 or higher, we fixed this in #1968 and released in https://github.com/anchore/syft/releases/tag/v0.86.0 . If you still see this please shout out and we can re-open it. |
What happened:
Syft image throws me a panic when trying to parse an image
What you expected to happen:
I am expecting this to run without error and stddout the cyclonedx-json, like I would get for some images. It should give me the output like this command would:
docker run --rm anchore/syft --catalogers dpkgdb --output cyclonedx-json python:latest
Steps to reproduce the issue:
Run this command:
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock anchore/syft --catalogers dpkgdb --output cyclonedx-json docker:python:latest
This seems to not work for python:latest, ruby:latest, golang:latest and a couple other images for me, so the image name can be messed around with to show that it works for some other images.
Anything else we need to know?:
Running the command without the docker socket will work however.
docker run --rm anchore/syft --catalogers dpkgdb --output cyclonedx-json python:latest
Environment:
syft version
:cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: