Skip to content
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

Please Help! Can't get trivy to scan an image or a container. What does this error mean??? #118

Open
alzittel opened this issue Feb 8, 2024 · 0 comments

Comments

@alzittel
Copy link

alzittel commented Feb 8, 2024

I'm using RHEL8 and am trying to resolve the following error. I'm using Posdman/trivy since it's understood that RHEL8 will not (or will not soon) support Docker. I'd be more than happy to pay for assistance in resolving my error and get trivy to scan/work. Please help!!

[chris@localhost pr_test]$ trivy image bb-1.1-patch-rollup-2024-01-31-10-55-25.tar.gz
2024-02-08T14:29:32.295-0500 INFO Need to update DB
2024-02-08T14:29:32.295-0500 INFO DB Repository: ghcr.io/aquasecurity/trivy-db
2024-02-08T14:29:32.295-0500 INFO Downloading DB...
42.78 MiB / 42.78 MiB [-----------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 13.72 MiB p/s 3.3s
2024-02-08T14:29:36.471-0500 INFO Vulnerability scanning is enabled
2024-02-08T14:29:36.471-0500 INFO Secret scanning is enabled
2024-02-08T14:29:36.471-0500 INFO If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-02-08T14:29:36.471-0500 INFO Please see also https://aquasecurity.github.io/trivy/v0.49/docs/scanner/secret/#recommendation for faster secret detection
2024-02-08T14:29:37.696-0500 FATAL image scan error: scan error: unable to initialize a scanner: unable to initialize an image scanner: 4 errors occurred:
* docker error: unable to inspect the image (bb-1.1-patch-rollup-2024-01-31-10-55-25.tar.gz): permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/bb-1.1-patch-rollup-2024-01-31-10-55-25.tar.gz/json": dial unix /var/run/docker.sock: connect: permission denied
* containerd error: containerd socket not found: /run/containerd/containerd.sock
* podman error: unable to initialize Podman client: no podman socket found: stat /run/user/1000/podman/podman.sock: no such file or directory
* remote error: GET https://index.docker.io/v2/library/bb-1.1-patch-rollup-2024-01-31-10-55-25.tar.gz/manifests/latest: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:library/bb-1.1-patch-rollup-2024-01-31-10-55-25.tar.gz Type:repository]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant