@Test
  public void testBasic_dockerDaemonBaseImageToDockerDaemon()
      throws IOException, InterruptedException, InvalidImageReferenceException, ExecutionException,
          RegistryException, CacheDirectoryCreationException {
    String toImage = dockerHost + ":5000/docker-to-docker";
    Jib.from(DockerDaemonImage.named(dockerHost + ":5000/busybox"))
        .setEntrypoint("echo", "Hello World")
        .containerize(Containerizer.to(DockerDaemonImage.named(toImage)));

    String output = new Command("docker", "run", "--rm", toImage).run();
    Assert.assertEquals("Hello World\n", output);
    imageToDelete = toImage;
  }
Pulls a built image and attempts to run it.

@param imageReference the image reference of the built image
@return the container output
@throws IOException if an I/O exception occurs
@throws InterruptedException if the process was interrupted
jib-core/src/integration-test/java/com/google/cloud/tools/jib/api/JibIntegrationTest.java