private void tagImage(String sourceImage, Image image) throws HyscaleException {
        if (StringUtils.isBlank(sourceImage)) {
            return;
        }
        String destinationImage = ImageUtil.getImage(image);
        ImageTagEvent event = new ImageTagEvent(ActivityState.STARTED, sourceImage, destinationImage);
        publisher.publishEvent(event);
        try {
            hyscaleDockerClient.tag(sourceImage, image);
            event = new ImageTagEvent(ActivityState.DONE, sourceImage, destinationImage);
        } catch (HyscaleException e) {
            event = new ImageTagEvent(ActivityState.FAILED, sourceImage, destinationImage);
            throw e;
        } 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