I'm trying to delete each docker image that it's name == none in my system.
I have tried this
for image in $(docker images | grep none); do echo $image; done
But this gives me the output of each column like that:
<none>
<none>
a20d00ca4041
19
minutes
ago
227MB
I want it like that:
<none> <none> a20d00ca4041 20 minutes ago 227MB
So i can delete delete the image by it's id.
Any help ?