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

Unable to use syft for private azure container registry #1777

Closed
ZER-0-NE opened this issue May 3, 2023 · 1 comment
Closed

Unable to use syft for private azure container registry #1777

ZER-0-NE opened this issue May 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ZER-0-NE
Copy link

ZER-0-NE commented May 3, 2023

What happened:

When trying to get packages using syft for image in a private acr, the following command syft packages <acr-name>.azurecr.io/<registry>/<container>:7972..........ad -o spdx-json (assume the names are correct) throws this error:

Pulling image

2023/05/03 14:27:59 error during command execution: 1 error occurred:
	* failed to construct source from user input "<acr-name>.azurecr.io/<registry>/<container>:7972..........ad": could not fetch image "<acr-name>.azurecr.io/<registry>/<container>:7972..........ad": unable to use DockerDaemon source: pull failed: Error response from daemon: manifest for <acr-name>.azurecr.io/<registry>/<container>:7972..........ad not found: manifest unknown: manifest tagged by "7972.........ad" is not found

Similarly, the command with registry added ,syft packages registry:<acr-name>.azurecr.io/<registry>/<container>:7972..........ad -o spdx-json throws the error:

2023/05/03 14:28:30 error during command execution: 1 error occurred:
	* failed to construct source from user input "regsitry:<acr-name>.azurecr.io/<registry>/<container>:7972..........ad": could not fetch image "regsitry:<acr-name>.azurecr.io/<registry>/<container>:7972..........ad": unable to determine image source to select platform

What you expected to happen:

Able to list packages

Steps to reproduce the issue:

Use the above commands from private registry. Also, the following is running in Gitlab CI where I have authenticated using docker login and even pulled the image using docker pull <acr-name>.azurecr.io/<registry>/<container>:7972..........ad

Anything else we need to know?:

Environment:

  • Output of syft version: syft 0.79.0
  • OS (e.g: cat /etc/os-release or similar):
@ZER-0-NE ZER-0-NE added the bug Something isn't working label May 3, 2023
@ZER-0-NE
Copy link
Author

ZER-0-NE commented May 4, 2023

there was a mismatch in registry name

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
None yet
Development

No branches or pull requests

1 participant