code: public File createDockerTarArchive(String imageName, MojoParameters params, BuildImageConfiguration buildConfig, Logger log)
              throws MojoExecutionException {
          return createDockerTarArchive(imageName, params, buildConfig, log, null);
      }
docs: Create an docker tar archive from the given configuration which can be send to the Docker host for
  creating the image.
  
  @param imageName Name of the image to create (used for creating build directories)
  @param params Mojos parameters (used for finding the directories)
  @param buildConfig configuration for how to build the image
  @param log Logger used to display warning if permissions are to be normalized
  @return file holding the path to the created assembly tar file
  @throws MojoExecutionException