docker images | grep some-stringto-filter-images | sed "s/^\(\\S\+\)\\s\+\(\\S\+\).\+/\1:\2/" | xargs -I% docker image rm %