fix docker.pulled when a tag is specified

(fixes #15156 and #15053)
Merge pull request #16054 from bbinet/fix-docker-pulled-with-tag

fix docker.pulled when a tag is specified