grype icon indicating copy to clipboard operation
grype copied to clipboard

UX: rework the `No such image` error since image is already exist for different platforms

Open Dentrax opened this issue 1 year ago • 1 comments

What would you like to be added:

The thrown No such image error is like: image is not exist at all. But it's already exist:

crane manifest docker.io/kubeflownotebookswg/volumes-web-app:latest
$ grype docker.io/kubeflownotebookswg/volumes-web-app:latest
 ⠹ Pulling image
1 error occurred:
	* failed to catalog: unable to load image: unable to use DockerDaemon source: unable to inspect existing image: Error response from daemon: No such image: kubeflownotebookswg/volumes-web-app:latest

Passing --platform linux/amd64 is required to make it run. But No such image error is confusing to end user IMHO.

Why is this needed:

To provide better UX. For benchmark, Trivy can able to scan without passing additional platform info:

trivy image docker.io/kubeflownotebookswg/volumes-web-app:latest

Additional context: I'm running on arm64

Dentrax avatar Aug 25 '23 19:08 Dentrax

Hi @Dentrax, thanks for the report. We agree that this error message is confusing. We will need to do some investigation to figure out how to solve it.

tgerla avatar Oct 12 '23 20:10 tgerla