public static String getImageIdFromTag ( String imageTag , String host ) throws IOException { DockerClient dockerClient = null ; try { dockerClient = getDockerClient ( host ) ; return dockerClient . inspectImageCmd ( imageTag ) . exec ( ) . getId ( ) ; } finally { closeQuietly ( dockerClient ) ; } }
Get image Id from imageTag using DockerBuildInfoHelper client .