mimic docker client's repository name resolution