GitLab doesn't have its own way to delete container images from their registry. Their documentation suggests to use reg rm to tackle the problem.
When I run the suggested setup the output states "Deleted docker.io/...", which is a bit irritating.
...
$ ./reg rm -d --auth-url ${CI_REGISTRY} -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${IMAGE}:${TAG}
time="2023-05-20T14:57:58Z" level=info msg="domain: docker.io"
time="2023-05-20T14:57:58Z" level=info msg="server address: registry.gitlab.com"
2023/05/20 14:57:58 registry.ping url=https://registry.gitlab.com/v2/
2023/05/20 14:57:58 registry.manifests.get url=https://registry.gitlab.com/v2/foo/bar/baz-container/manifests/mr1 repository=foo/bar/baz-container ref=mr1
2023/05/20 14:57:58 registry.manifests.delete url=https://registry.gitlab.com/v2/foo/bar/baz-container/manifests/sha256:2dabbf05c801a3e63d598714396d4ddbae63d0c993a6386d26683b4d74e54833 repository=foo/bar/baz-container digest=sha256:2dabbf05c801a3e63d598714396d4ddbae63d0c993a6386d26683b4d74e54833
Deleted docker.io/foo/bar/baz-container:mr1@sha256:2dabbf05c801a3e63d598714396d4ddbae63d0c993a6386d26683b4d74e54833
I understand that the output states "server address: registry.gitlab.com" in line two. But this is easily overlooked.
Shouldn't the last line of the output use the actual registry server address?
GitLab doesn't have its own way to delete container images from their registry. Their documentation suggests to use
reg rmto tackle the problem.When I run the suggested setup the output states "Deleted docker.io/...", which is a bit irritating.
I understand that the output states "server address: registry.gitlab.com" in line two. But this is easily overlooked.
Shouldn't the last line of the output use the actual registry server address?