private void pullImage(String sourceImage, ServiceSpec serviceSpec, Map<String, ImageRegistry> registryMap)
            throws HyscaleException {
        ImageRegistry pullRegistry = getStackImagePullRegistry(serviceSpec, registryMap);
        ImagePullEvent event = new ImagePullEvent(ActivityState.STARTED, sourceImage);
        publisher.publishEvent(event);

        try {
            hyscaleDockerClient.pull(sourceImage, pullRegistry);
            event = new ImagePullEvent(ActivityState.DONE, sourceImage);
        } catch (HyscaleException ex) {
            event = new ImagePullEvent(ActivityState.FAILED, sourceImage);
            throw ex;
        } finally {
            publisher.publishEvent(event);
        }
    }
Only need to pull in case of stack as service image for tagging
 In other cases docker build will internally take care of pulling the image
 
@param sourceImage
@param registryMap 
@param context
@throws HyscaleException
image-builder/builder-services/src/main/java/io/hyscale/builder/services/impl/LocalImageBuildPushServiceImpl.java