@Test
  public void testBasic_tarBaseImage_jibImageToDockerDaemon()
      throws InvalidImageReferenceException, InterruptedException, ExecutionException,
          RegistryException, CacheDirectoryCreationException, IOException, URISyntaxException {
    // tar saved with Jib.from("busybox").addLayer(...("core/hello")).containerize(TarImage.at...)
    Path path = Paths.get(Resources.getResource("core/busybox-jib.tar").toURI());

    String toImage = dockerHost + ":5000/basic-jibtar-to-docker";
    JibContainer jibContainer =
        Jib.from(TarImage.at(path).named("ignored"))
            .setEntrypoint("cat", "/hello")
            .containerize(
                Containerizer.to(RegistryImage.named(toImage)).setAllowInsecureRegistries(true));

    Assert.assertEquals("Hello World\n", pullAndRunBuiltImage(toImage));
    Assert.assertEquals(
        "Hello World\n", pullAndRunBuiltImage(toImage + "@" + jibContainer.getDigest()));
    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