I know there are a lot of solutions for this, however if you need cross platform solution working both for for Windows and Linux OS, just use small and nifty sparrow plugin docker-remove-dangling-images:
$ sparrow plg install docker-remove-dangling-images
$ sparrow plg run docker-remove-dangling-images
Best
Alexey
Top comments (8)
why just do not create function for that? or even alias
A few points:
I know there is dot files and GH, but this only works well for very "simple/one time purposes" scripts, reality is eventually any script gets more complicated and needs proper distribution mechanism.
On windows i personally use git-bash
as i looked (hopefully on right source) everything is oneliner, so i do not see point of installing something, what is as long as command itself
end actually, i think most people would need to install sparrow. (never heard of it)
imho overkill
I don't want to install git bash for the sake of running simple script.
My point is that everything that starts as one liner command eventually might turn in more complicated script.
Well, you are fine as long as you create something that is working only for you and your environment.
While idea behind the Sparrow is portable scripts for community which get installed and run without any fuss.
The real benefit of using Sparrow is that you develop script with distribution and maintenance in mind rather then creating one time solutions which only works for you.
maybe i will check out sparrow someday, doesnt sound bad...
ad 1. if you use git (which you should), you have git-bash already installed
Why not just use the official way:
Hi @Paulius, thanks for suggestion, fixed at version 0.0.8: