Skip to content

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

@alzittel

Description

@alzittel

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]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions