I would like to delete particular or all manifests in my private docker registry remotely (v2 api) to make it possible images data to be collected by gc. I found this tool, but it only works with tags. I decided to extend it. I would like to enumerate manifests. Is it possible to get manifests list? I can't find something useful on this.
I checked those and I'm also searching the web, but with no success.
--UPDATE--
Either of both results in 404 error of course (I just prefer using wget
). For
https://<registry-origin>/v2/gk-backend/tags/list
I got {"name":"gk-backend","tags":["latest"]}
as I expect. When I try father to get the manifest I have 404. I issue the request by using wget
like
wget --method=HEAD --header="Accept: application/vnd.docker.distribution.manifest.v2+json" --no-check-certificate --http-user user --http-password pass https://<registry-origin>/v2/wjs-wealth/manifests/gk-backend:latest -O-
And curl
also gives me 404
curl --header "Accept: application/vnd.docker.distribution.manifest.v2+json" -sI --user user:pass https://<registry-origin>/v2/wjs-wealth/manifests/gk-backend:latest