scan error: unable to find the specified image "nginx:1.a.b.c" #2489
Answered
by
afdesk
SBatais
asked this question in
Help & Support
-
Hello I'm looking for some help about this error. {
"level": "error",
"ts": "2025-03-18T13:16:49Z",
"logger": "reconciler.scan job",
"msg": "Scan job container",
"job": "trivy-system/scan-vulnerabilityreport-57c64b54f8",
"container": "broken-pod",
"status.reason": "Error",
"status.message": "2025-03-18T13:16:46Z\tFATAL\tFatal error\timage scan error: scan error: unable to initialize a scanner: unable to initialize an image scanner: unable to find the specified image \"nginx:1.a.b.c\" in [\"docker\" \"containerd\" \"podman\" \"remote\"]: 4 errors occurred:\n\t* docker error: unable to inspect the image (nginx:1.a.b.c): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?\n\t* containerd error: containerd socket not found: /run/containerd/containerd.sock\n\t* podman error: unable to initialize Podman client: no podman socket found: stat podman/podman.sock: no such file or directory\n\t* remote error: GET https://index.docker.io/v2/library/nginx/manifests/1.a.b.c: MANIFEST_UNKNOWN: manifest unknown; unknown tag=1.a.b.c\n\n\n",
"stacktrace": "github.com/aquasecurity/trivy-operator/pkg/vulnerabilityreport/controller.(*ScanJobController).completedContainers\n\t/home/runner/work/trivy-operator/trivy-operator/pkg/vulnerabilityreport/controller/scanjob.go:355\ngithub.com/aquasecurity/trivy-operator/pkg/vulnerabilityreport/controller.(*ScanJobController).SetupWithManager.(*ScanJobController).reconcileJobs.func1\n\t/home/runner/work/trivy-operator/trivy-operator/pkg/vulnerabilityreport/controller/scanjob.go:82\nsigs.k8s.io/controller-runtime/pkg/reconcile.TypedFunc[...].Reconcile\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/reconcile/reconcile.go:124\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:118\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:328\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:288\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:249"
} Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
afdesk
Mar 24, 2025
Replies: 1 comment
-
@SBatais this error comes from Trivy: $ trivy image nginx:1.a.b.c
2025-03-24T12:12:10+06:00 INFO [vuln] Vulnerability scanning is enabled
2025-03-24T12:12:10+06:00 INFO [secret] Secret scanning is enabled
2025-03-24T12:12:10+06:00 INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-03-24T12:12:10+06:00 INFO [secret] Please see also https://trivy.dev/v0.60/docs/scanner/secret#recommendation for faster secret detection
2025-03-24T12:12:13+06:00 FATAL Fatal error image scan error: scan error: unable to initialize a scanner: unable to initialize an image scanner: unable to find the specified image "nginx:1.a.b.c" in ["docker" "containerd" "podman" "remote"]: 4 errors occurred:
* docker error: unable to inspect the image (nginx:1.a.b.c): Error response from daemon: No such image: nginx:1.a.b.c
* containerd error: containerd socket not found: /run/containerd/containerd.sock
* podman error: unable to initialize Podman client: no podman socket found: stat podman/podman.sock: no such file or directory
* remote error: GET https://index.docker.io/v2/library/nginx/manifests/1.a.b.c: MANIFEST_UNKNOWN: manifest unknown; unknown tag=1.a.b.c it seems Trivy-operator can't get the image for scanning... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SBatais
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@SBatais this error comes from Trivy: