Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete from registry #688

Closed
msvticket opened this issue Jan 9, 2017 · 1 comment
Closed

Delete from registry #688

msvticket opened this issue Jan 9, 2017 · 1 comment

Comments

@msvticket
Copy link

Description

We primarily use docker with feature branches and when the feature branch is finished we want the corresponding images to be deleted from our registry. So we would like a goal like docker:registry-delete.

References

https://docs.docker.com/registry/spec/api/#deleting-an-image
docker-archive/docker-registry#988 (comment)

@rhuss
Copy link
Collaborator

rhuss commented Feb 16, 2017

This cannot be performed by this plugin easily.

The problem is, that d-m-p only talks with the Docker daemon, never directly with the Docker registry. And unfortunately the Docker daemon doesn't provide an API method for removing an image from a registry (it supports e.g. pulling from a registry, where the client (d-m-p) calls the Docker daemon which in turn calls the registry).

For implementing this feature one would need to add a whole can of worms like managing authentication against a registry directly, cert handling, ....

So I'm afraid this is out of scope for this plugin. However, if the Docker API would support image removal from a registry, this feature could be considered to be included. Maybe you open an issue over there ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants