If token is specified (for a private registry, for example), but not correct (i.e. the image is for the public docker registry), but we can obtain a proper token (like if the image is in a public docker registry), we should ignore the passed in token and get the proper token.
If token is specified (for a private registry, for example), but not correct (i.e. the image is for the public docker registry), but we can obtain a proper token (like if the image is in a public docker registry), we should ignore the passed in token and get the proper token.