public ImageRegistry from(DockerCredHelper dockerCredHelper) {
        if (dockerCredHelper == null) {
            return null;
        }
        return from(dockerCredHelper.get(registry));
    }
returns ImageRegistry from docker credHelper from local docker config if present,else returns null.

@param dockerCredHelper
@return ImageRegistry
workflow-controller/controller-service/src/main/java/io/hyscale/controller/builder/ImageRegistryBuilder.java