public void pullImage(String imageName) throws HyscaleException {
        String pullImageCommand = commandGenerator.dockerPull(imageName);

        logger.debug("Docker pull command: {}", pullImageCommand);
        boolean success = CommandExecutor.execute(pullImageCommand);
        if (!success) {
            throw new HyscaleException(ImageBuilderErrorCodes.FAILED_TO_PULL_IMAGE, imageName);
        }
    }
Test if docker is installed and docker daemon is running
image-builder/builder-services/src/main/java/io/hyscale/builder/services/util/DockerImageUtil.java