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

scan the docker image error-unable to retrieve auth token #195

Open
masabow123 opened this issue Aug 7, 2022 · 0 comments
Open

scan the docker image error-unable to retrieve auth token #195

masabow123 opened this issue Aug 7, 2022 · 0 comments
Labels
question Further information is requested

Comments

@masabow123
Copy link

I tried to scan the docker image with dockle but I got the following error.

2022-07-20T06:30:49.627Z WARN A new version is now available! You have v0.3.10.
2022-07-20T06:31:01.303Z FATAL unable to initialize a image struct: failed to initialize source: unable to retrieve auth token: invalid username/password: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information.

Referring to the issue(#106) , I upgraded dockle from v0.3.10 to v0.3.11 and tried again, but the following similar error occurred.
(I also tried updating to v0.4.5, but it was the same.)

2022-07-22T04:44:40.677Z INFO Failed to check latest version. not found version patterns
2022-07-22T04:44:52.318Z FATAL unable to initialize a image struct: failed to initialize source: unable to retrieve auth token: invalid username/password: unauthorized: authentication required

This error was sometimes resolved by clearing the docker build cache with the "docker system prune -a" command, but sometimes not, in those cases rebooting the VM resolved it.

The next time it occurs, I would like to solve it by a method other than restarting the VM, so could you tell me the cause and the fundamental countermeasure?

The docker image I used is building from adoptopenjdk/openjdk11:x86_64-ubuntu-jdk-11.0.11_9 with DockerFile.

Thanks

@masabow123 masabow123 added the question Further information is requested label Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant