-
Notifications
You must be signed in to change notification settings - Fork 362
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
Remove multiple images at once #1190
Comments
Given that some other tasks already use a list of images, I think we should do the same here. A way forward would be to deprecate the existing field and introduce a new field as replacement. Is this something you are interested in working on in the form of a pull request? |
Hi @bmuschko sure, good idea to enhance RemoveImage with a list of images. Unfrotunatly I'm not sure I have enough time to make a PR, but i'll do my best in the next few weeks. |
Hi @bmuschko, |
Possible close bmuschko#1190
Possible close bmuschko#1190
Hi,
First of all, thanks for outstanding plugin, guys.
It would be great if I could delete multiple docker images with a single Gradle task.
Expected Behavior
Additional task
DockerRemoveImages
for example or upgrade currentDockerRemoveImage
to accept a list of image Ids. No need for atomic remove for me at least.Current Behavior
There is no way to delete multiple images at once or I couldn't find it. Anyone please guide me if I'm missing something. Now I have to do something like that:
Sure, its a workaround. But...
Context
On my build server there are a lot of Docker images left which were already pushed to remote registry. Would like to have an easy way to remove them as a part of Gradle script. Also, if Gradle script fails after image has been built its a good idea on next successful run remove any stale images. Sure, there could be more than just one.
Your Environment
The text was updated successfully, but these errors were encountered: