Reputation: 9765
Image 0dd747e33c96 already pushed, skipping
Image 9ebea32a283d already pushed, skipping
Image 3690474eb5b4 already pushed, skipping
Image cbf4c83202ff already pushed, skipping
Image 09ddd09520af already pushed, skipping
How can I remove these images from a private docker registry? (it's v1)? I have access to the server.
Why do I want to do that? I am building an image via Jenkins docker plugin and it just does not push changes to the registry. Building on local works.
I would be happy to forcefully overwrite them too.
Upvotes: 4
Views: 13649
Reputation: 1
go to https://hub.docker.com/repositories clack on tags then you could Determined your image and then you will find up Action click on it and you will see delete ► that is it ◄
Upvotes: -2
Reputation: 301527
First of all, your images are actually layers of images. While you make changes, it doesn't mean that all layers are changing. And if there hasn't been any change at, docker and the registry are smart enough to not push anything. This is not an issue of old images not being updated on push with new ones, but more like old image layers not being changed as part of your build process.
In v1 there is no way to delete an image. Best option is to update to the newer registry as v2 has been out for a very long time already.
The more recent versions of the docker distribution provide an API.
Checkout the docker distribution API docks for deleting an image
Deleting an Image
An image may be deleted from the registry via its name and reference. A delete may be issued with the following request format:
DELETE /v2/<name>/manifests/<reference>
For deletes, reference must be a digest or the delete will fail. If the image exists and has been successfully deleted, the following response will be issued:
202 Accepted Content-Length: None
If the image had already been deleted or did not exist, a 404 Not Found response will be issued instead.
Note When deleting a manifest from a registry version 2.3 or later, the following header must be used when HEAD or GET-ing the manifest to obtain the correct digest to delete: Accept: application/vnd.docker.distribution.manifest.v2+json
Upvotes: 5