public static Containerizer to(DockerClient dockerClient, DockerDaemonImage dockerDaemonImage) {
    ImageConfiguration imageConfiguration =
        ImageConfiguration.builder(dockerDaemonImage.getImageReference()).build();

    Function<BuildContext, StepsRunner> stepsRunnerFactory =
        buildContext -> StepsRunner.begin(buildContext).dockerLoadSteps(dockerClient);

    return new Containerizer(
        DESCRIPTION_FOR_DOCKER_DAEMON, imageConfiguration, stepsRunnerFactory, false);
  }
Gets a new {@link Containerizer} that containerizes to a Docker daemon.

@param dockerClient the {@link DockerClient} to connect
@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