LOGGER.debug("Executing Docker Remove Image Request");
String imageId = DockerHelper.getProperty(DockerConstants.DOCKER_IMAGE_ID, configuration, message, String.class);
RemoveImageCmd removeImagesCmd = client.removeImageCmd(imageId);
Boolean force = DockerHelper.getProperty(DockerConstants.DOCKER_FORCE, configuration, message, Boolean.class);
if (force != null && force) {
removeImagesCmd.withForce();
}
Boolean prune = DockerHelper.getProperty(DockerConstants.DOCKER_NO_PRUNE, configuration, message, Boolean.class);
if (prune != null && prune) {
removeImagesCmd.withNoPrune();
}
return removeImagesCmd;
}