public static Containerizer from(
      CommonCliOptions commonCliOptions, ConsoleLogger logger, CacheDirectories cacheDirectories)
      throws InvalidImageReferenceException, FileNotFoundException {
    Containerizer containerizer = create(commonCliOptions, logger);

    applyHandlers(containerizer, logger);
    applyConfiguration(containerizer, commonCliOptions, cacheDirectories);

    return containerizer;
  }
Create a Containerizer from a command line specification.

@param commonCliOptions common cli options
@param logger a logger to inject into the build
@param cacheDirectories the location of the relevant caches for this build
@return a populated Containerizer
@throws InvalidImageReferenceException if the image reference could not be parsed
@throws FileNotFoundException if a credential helper file is not found
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Containerizers.java