private String lookupImageIdFromContainer(String containerId) { try { InspectContainerResponse containerInspectResponse = docker.inspectContainerCmd(containerId).exec(); return containerInspectResponse.getImageId(); } catch (DockerException e) { logger.error("Unable to inspect container " + containerId, e); throw new OrchestrationException(e); } }