public JibContainerBuilder setFormat(ImageFormat imageFormat) {
    containerBuildPlanBuilder.setFormat(imageFormat);
    buildContextBuilder.setTargetFormat(imageFormat);
    return this;
  }
Sets the format to build the container image as. Use {@link ImageFormat#Docker} for Docker V2.2
or {@link ImageFormat#OCI} for OCI.

@param imageFormat the {@link ImageFormat}
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java