private AuthConfig getAuthConfig(ImageRegistry imageRegistry) {
        if (imageRegistry == null) {
            return null;
        }
        AuthConfig authConfig = new AuthConfig();
        authConfig.withRegistryAddress(imageRegistry.getUrl());
        Credentials credentials = EncodeDecodeUtil.getDecodedCredentials(imageRegistry.getToken());
        if (credentials != null) {
            authConfig.withUsername(credentials.getUsername());
            authConfig.withPassword(credentials.getPassword());
        }
        return authConfig;
    }
DockerClientImpl is docker client to docker daemon to perform all
image actions like pull image, tag image, push image etc.
It connects to the docker daemon through an environment
variable @see ImageBuilderConfig.getDockerHost() or through to
the default host based on the operating system.
image-builder/builder-services/src/main/java/io/hyscale/builder/services/docker/impl/DockerRESTClient.java