If the name of the image has the registry location encoded into it, then return it.
If the name of the image has the registry location encoded into it, then return it. Otherwise, if shorthand is used assume we're dealing with a public docker image and prepend index.docker.io and yield. Anything else should be invalid so we'll just return None there.
This is a convenience function that allows you to easily retarget a given docker image to a different registry location (e.g.
This is a convenience function that allows you to easily retarget a given docker image to a different registry location (e.g. from index.docker.com to your internal private registry).