You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm cleaning up a nexus repo after a massive coding effort that generated many images, manifests and tags. Since I made the mistake of using a single docker-hosted repo for snapshots and releases, I have to be careful what I delete. Images destined for a test environment are tagged with 'stage' in addition to the commit SHA. I can't use nexus-cli's 'keep' feature because the image tagged with stage may not be the latest image pushed to the repository. I use this comment to delete the unwanted images:
The grep removes the stage tag and the summary line from the list of image tags. The first run of this command deletes most of the tags with some exceptions. The output has '404 not found' interleaved with the '...successful deleted' messages'. A second run deletes tags missed on the first run. Continuing to run the command until I see no 404's yields a nasty surprise. image-name, all of its manifests and tags (including stage) are gone.
The text was updated successfully, but these errors were encountered:
I'm cleaning up a nexus repo after a massive coding effort that generated many images, manifests and tags. Since I made the mistake of using a single docker-hosted repo for snapshots and releases, I have to be careful what I delete. Images destined for a test environment are tagged with 'stage' in addition to the commit SHA. I can't use nexus-cli's 'keep' feature because the image tagged with stage may not be the latest image pushed to the repository. I use this comment to delete the unwanted images:
The grep removes the stage tag and the summary line from the list of image tags. The first run of this command deletes most of the tags with some exceptions. The output has '404 not found' interleaved with the '...successful deleted' messages'. A second run deletes tags missed on the first run. Continuing to run the command until I see no 404's yields a nasty surprise. image-name, all of its manifests and tags (including stage) are gone.
The text was updated successfully, but these errors were encountered: