String testImage = "hackmann/empty";
LOG.info("Removing image: {}", testImage);
dockerClient.removeImage(testImage);
Info info = dockerClient.info();
LOG.info("Client info: {}", info.toString());
int imgCount = info.getImages();
LOG.info("Pulling image: {}", testImage);
tmpImgs.add(testImage);
ClientResponse response = dockerClient.pull(testImage);
assertThat(logResponseStream(response), containsString("Download complete"));
info = dockerClient.info();
LOG.info("Client info after pull, {}", info.toString());
// TODO: imgCount should differ (maybe a docker bug?)
assertThat(imgCount, lessThanOrEqualTo(info.getImages()));
ImageInspectResponse imageInspectResponse = dockerClient
.inspectImage(testImage);
LOG.info("Image Inspect: {}", imageInspectResponse.toString());
assertThat(imageInspectResponse, notNullValue());