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

harbor v2.x support #95

Open
wu105 opened this issue Oct 16, 2020 · 1 comment
Open

harbor v2.x support #95

wu105 opened this issue Oct 16, 2020 · 1 comment

Comments

@wu105
Copy link

wu105 commented Oct 16, 2020

When listing images on harbor v2.1.0, e.g.,
docker run --disable-content-trust --rm anoxis/registry-cli -r https://demo.goharbor.io -l '<id>:<password>'
nothing is displayed. the demo.goharbor.io is open to every one, I signed up for an account, created a project, pushed a image fopr this test. There are other images at demo.goharbor.io.

When listing images on harbor v2.0.3 using a command identical to above except the registry url and credential and with additional parameter --no-validate-ssl, the following error is displayed:
couldnt accure token: Method Not Allowed

The harbor api was tested ok using the same credential on urls similar to the following:

https://<host>/api/v2.0/projects/<project>/repositories/<repo>
https://<host>/api/v2.0/projects/<project>/repositories/<repo>/artifacts
https://<host>/api/v2.0/projects/<project>/repositories/<repo>/artifacts/<tagname>
https://<host>/api/v2.0/projects/<project>/repositories/<repo>/artifacts/<tagname>/tags
@ipavlushin
Copy link
Collaborator

Hi @wu105, I briefly looked at harbor docs and seems they have "tag retention" feature. I suggest you to explore it and try it. It might be better than 3rd party script ;)

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

2 participants