fix docker.pulled when a tag is specified

(fixes #15156 and #15053)