Set short name mode to permissive
This will ensure that is the short name alias is not
found in the alias table it will always fall back to
loking through the search registries list as the user
cannot be prompted to select which registry to pull from.
@@ -745,6 +745,10 @@ func (svc *imageService) ResolveNames(systemContext *types.SystemContext, imageN
return nil, err
}
+ // Set shortNameMode to permissive so we fall back to look through the search registries list
+ // if the short name alias is not found in the alias table
+ permissive := types.ShortNameModePermissive
+ systemContext.ShortNameMode = &permissive
resolved, err := shortnames.Resolve(systemContext, imageName)
if err != nil {
return nil, err
