Take private registries into account when extracting tags and base_image
[#81108536]