docker-image.gitlab-ci: trivy fails because of missing image with PUSH_IMAGE=false?
Trivy fails with following log output:
$ trivy image --exit-code 0 --cache-dir .trivycache/ --no-progress --format template --template "@gitlab.tpl" -o gl-container-scanning-report.json --ignore-unfixed ${REGISTRY_IMAGE_PATH}
2023-06-21T16:27:44.556Z INFO Need to update DB
2023-06-21T16:27:44.556Z INFO DB Repository: ghcr.io/aquasecurity/trivy-db
2023-06-21T16:27:44.557Z INFO Downloading DB...
2023-06-21T16:27:46.545Z INFO Vulnerability scanning is enabled
2023-06-21T16:27:46.545Z INFO Secret scanning is enabled
2023-06-21T16:27:46.545Z INFO If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2023-06-21T16:27:46.545Z INFO Please see also https://aquasecurity.github.io/trivy/v0.42/docs/secret/scanning/#recommendation for faster secret detection
2023-06-21T16:27:46.637Z FATAL image scan error: scan error: unable to initialize a scanner: unable to initialize a docker scanner: 4 errors occurred:
* unable to inspect the image (registry.cern.ch/kubernetes/cvmfs-csi:multiarch-builds): Error response from daemon: no such image: registry.cern.ch/kubernetes/cvmfs-csi:multiarch-builds: No such image: registry.cern.ch/kubernetes/cvmfs-csi:multiarch-builds
* containerd socket not found: /run/containerd/containerd.sock
* unable to initialize Podman client: no podman socket found: stat podman/podman.sock: no such file or directory
* GET https://registry.cern.ch/v2/kubernetes/cvmfs-csi/manifests/multiarch-builds: NOT_FOUND: artifact kubernetes/cvmfs-csi:multiarch-builds not found
Uploading artifacts for failed job