docker: fix targetting images by name
Merge pull request #7419 from mattjbray/docker-fix-selection-by-name

docker: fix targetting images by name