-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Help wanted: 2.2 retag via api #14954
Comments
Same issue was resolved two years ago in v1 api but it is unavailable in Harbor v2. |
You should make sure you have permission to the target project. |
@stonezdj I have permissions, doing it under admin account.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue. |
Hi is there progress or is it possible to implement this feature? |
/help wanted
Need to retag image with overwrite -
latest
, for example.Of course I can do
docker pull registry/proj/repo:source && docker tag registry/proj/repo:source registry/proj/repo:latest && docker push registry/proj/repo:latest
, but want to avoid needless traffic.According to docs (https://goharbor.io/docs/2.2.0/working-with-projects/working-with-images/retagging-images/), I should use copy. Docs says: In the Retag window, enter the project name, repository name, the new tag name, and click Confirm. But web ui forbids to set
:tag
to destination repo field. Also, according to api swagger, seems it's not possible.I tried to use create tag api call, but got
CONFLICT
and cannot see in swagger any param to overwrite tag.Also tried to delete destination tag at first and then create tag with api. It works, but since we have event-based replication, there is race condition sometimes (create replicated first and delete goes after) and we have inconsistent remote registry.
So what is best atomic way to retag image with overwrite without pull / tag / push?
The text was updated successfully, but these errors were encountered: