public ImageRegistry from(Map<String, Auth> auths) {
        Auth auth = auths != null && auths.containsKey(registry) ? auths.get(registry) : null;
        if (auth == null) {
            return null;
        }
        String encodedAuth = auth.getAuth();
        if (StringUtils.isBlank(encodedAuth)) {
            return null;
        }
        ImageRegistry imageRegistry = new ImageRegistry();
        imageRegistry.setUrl(registry);
        imageRegistry.setToken(encodedAuth);

        return imageRegistry;
    }
returns ImageRegistry from Auths of local docker config if found else returns null.
<p> Example of Auths:
"auths": {
		"registry": {
			"auth": "token"
               },
		"another registry"....
       }
if auth exists with matching registry returns credentials as is in ImageRegistry as token
@param auths
@return ImageRegistry
workflow-controller/controller-service/src/main/java/io/hyscale/controller/builder/ImageRegistryBuilder.java