public static JibContainerBuilder from(String baseImageReference)
      throws InvalidImageReferenceException {
    if (baseImageReference.startsWith(DOCKER_DAEMON_IMAGE_PREFIX)) {
      return from(
          DockerDaemonImage.named(baseImageReference.replaceFirst(DOCKER_DAEMON_IMAGE_PREFIX, "")));
    }
    if (baseImageReference.startsWith(TAR_IMAGE_PREFIX)) {
      return from(TarImage.at(Paths.get(baseImageReference.replaceFirst(TAR_IMAGE_PREFIX, ""))));
    }
    return from(RegistryImage.named(baseImageReference.replaceFirst(REGISTRY_IMAGE_PREFIX, "")));
  }
Starts building the container from a base image. The type of base image can be specified using
a prefix, e.g. {@code docker://gcr.io/project/image}. The available prefixes are described
below:

<ul>
  <li>No prefix, or {@code registry://}: uses a registry base image
  <li>{@code docker://}: uses a base image found in the local Docker daemon
  <li>{@code tar://}: uses a tarball base image at the path following the prefix
</ul>

@param baseImageReference the base image reference
@return a new {@link JibContainerBuilder} to continue building the container
@throws InvalidImageReferenceException if the {@code baseImageReference} is not a valid image
    reference
jib-core/src/main/java/com/google/cloud/tools/jib/api/Jib.java