When I’m playing with Docker for a new project I usually end up having dozens
or even more of <none>
images:
It’s pretty annoying to remove images one by one and copy/paste their IDs
,
so I came up with simple one line command to remove all the <none>
:
And as you can see no more <none>
images:
You can also change filter criteria for grep
command to what ever you want to remove.
Or even go further and create an alias in your ~/.bash_profile
:
…do not forget to source your ~/.bash_profile
:
…and call it from the terminal: