gcloud artifacts docker images scan hello-world
is throwing following error.
(gcloud.artifacts.docker.images.scan) Extraction failed: could not detect operating system of image, scan aborted
Any feedback on how to resolve this error?
gcloud artifacts docker images scan hello-world
is throwing following error.
(gcloud.artifacts.docker.images.scan) Extraction failed: could not detect operating system of image, scan aborted
Any feedback on how to resolve this error?
As per the official document it is mentioned that the OS scanning overview supports vulnerability scanning for the following OS versions:
Please check if the docker image you are using has one the above supported OS , if not then it would result in the scan not detecting the operating system of the image, and aborts the scan with extraction failed error.
I would recommend you to have a look at the Artifact Registry scanning and Vulnerabilities scan document for further detailed information.