buildImageCmd.withTag(name); String imageId = buildImageCmd.exec(new BuildImageResultCallback()).awaitImageId();
buildImageCmd.withTag(name); String imageId = buildImageCmd.exec(new BuildImageResultCallback()).awaitImageId();
private static String dockerBuild(String path) { URL url = DockerHealthAwaitStrategyTest.class.getClassLoader().getResource(path); return dockerClient.buildImageCmd(new File(url.getFile()).getParentFile()) .exec(new BuildImageResultCallback()).awaitImageId(); }
.withDockerfile(dockerfile) .withTags(buildTags) .exec(new BuildImageResultCallback()).awaitImageId();
return result.awaitImageId();
exec.awaitImageId(); return dockerImageName; } finally {
final String imageId = build.exec(callback).awaitImageId();
String imageId = ((BuildImageResultCallback)result).awaitImageId();
.withBuildAuthConfigs(auths) .exec(resultCallback) .awaitImageId(); if (imageId == null) { throw new AbortException("Built image id is null. Some error occured");