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

Token failure with empty error message #104

Open
ronnessim opened this issue Jun 23, 2021 · 1 comment
Open

Token failure with empty error message #104

ronnessim opened this issue Jun 23, 2021 · 1 comment

Comments

@ronnessim
Copy link

We are trying to authenticate against a simple registry2 container running locally. The same credentials work fine via docker login.

# docker run --rm  anoxis/registry-cli -l 'username':'password' -r https://my-registry:5000 --no-validate-ssl            

[ERROR] couldnt accure token:

What would cause this type of error, and what's required to be able to authenticate using the registry-cli on the registry side? Is it possible to add a more descriptive error message?

@ronnessim
Copy link
Author

ronnessim commented Jun 23, 2021

adding --auth-method GET seems to have helped, but when actually deleting images we get 404 errors:

  deleting tag d26f280f774c17e442afd2f80c706341bd50ffc5
  tag digest not found: 404.
Try adding flag --digest-method=GET

adding the flag (with or without the = sign) doesn't make a difference. This is with registry2 version 2.6. What version of the docker registry is required? Does it need 2.7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant