Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grype throws "requested access to the resource is denied" even I have access with Docker #2161

Open
Dentrax opened this issue Oct 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Dentrax
Copy link

Dentrax commented Oct 4, 2024

What happened:

This works - and I able to pull the image without any issues:

docker image pull docker:cli

But this doesn't:

grype docker:cli
 ✔ Vulnerability DB                [no update available]
 ✔ Pulled image

failed to catalog: an error occurred attempting to resolve 'cli': docker: pull failed: Error response from daemon: pull access denied for cli, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

I able to scan any image with Grype beside docker:cli image. It's weird. This is actually the first time it threw auth issue.

After pull the image with docker pull, this worked:

grype docker.io/library/docker:cli

What you expected to happen:

It should able to pull the image?

How to reproduce it (as minimally and precisely as possible):

I don't know to provide reproducible steps here, sorry.

Anything else we need to know?:

Environment:

  • Output of grype version:
Application:         grype
Version:             0.80.0
BuildDate:           2024-08-20T17:56:40Z
GitCommit:           205ccfb6c90edb7258a9d25995f0a59c32e48142
GitDescription:      v0.80.0
Platform:            darwin/arm64
GoVersion:           go1.22.6
Compiler:            gc
Syft Version:        v1.11.1
Supported DB Schema: 5
  • OS (e.g: cat /etc/os-release or similar): macOS 14
@Dentrax Dentrax added the bug Something isn't working label Oct 4, 2024
@Dentrax Dentrax changed the title Grype says "requested access to the resource is denied" even I have access with Docker Grype throws "requested access to the resource is denied" even I have access with Docker Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant