Is your feature request related to a problem? Please describe.
For the moment, if I want to retag an image in Harbor with another tag, the only way seem to executing:
- docker pull ...
- docker tag ...
- docker push ...
This is very insufficient to pull a large image, it's more reasonable to achieve retag within the Harbor.
There are several scenarios when user may want to retag an image:
- Retag fully tested images from
stage project to product project
- Retag a latest dated tag to
latest, for example, app:201809011830 --> app:latest
- ...
Describe the solution you'd like
Harbor can provide an API to support retag an image, and may also to support it in UI. Then user can:
- Create new tag for an image
- Move images across projects within Harbor
Describe the main design/architecture of your solution
POST /api/retag
{
"src_image": "stage/app:v1.0",
"dest_image": "product/app:v1.0"
}
User can retag images to other project, or repo as long as it's permitted
For retag, there is no layer data transfer, so it should be efficient enough.
Describe the development plan you've considered
I'd like this can be achieved in v1.6.0. I will make a PR soon if it's accepted.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
For the moment, if I want to retag an image in Harbor with another tag, the only way seem to executing:
This is very insufficient to pull a large image, it's more reasonable to achieve retag within the Harbor.
There are several scenarios when user may want to retag an image:
stageproject toproductprojectlatest, for example, app:201809011830 --> app:latestDescribe the solution you'd like
Harbor can provide an API to support retag an image, and may also to support it in UI. Then user can:
Describe the main design/architecture of your solution
POST /api/retagUser can retag images to other project, or repo as long as it's permitted
For retag, there is no layer data transfer, so it should be efficient enough.
Describe the development plan you've considered
I'd like this can be achieved in v1.6.0. I will make a PR soon if it's accepted.
Additional context
Add any other context or screenshots about the feature request here.