public static Containerizer to(DockerDaemonImage dockerDaemonImage) {
    DockerClient dockerClient =
        DockerClientResolver.resolve(dockerDaemonImage.getDockerEnvironment())
            .orElse(
                new CliDockerClient(
                    dockerDaemonImage.getDockerExecutable(),
                    dockerDaemonImage.getDockerEnvironment()));

    return to(dockerClient, dockerDaemonImage);
  }
Gets a new {@link Containerizer} that containerizes to a Docker daemon.

@param dockerDaemonImage the {@link DockerDaemonImage} that defines target Docker daemon
@return a new {@link Containerizer}
jib-core/src/main/java/com/google/cloud/tools/jib/api/Containerizer.java