void writeLocalConfig(
      DescriptorDigest imageId, ContainerConfigurationTemplate containerConfiguration)
      throws IOException {
    Path configDirectory = cacheStorageFiles.getLocalDirectory().resolve("config");
    Files.createDirectories(configDirectory);
    writeJsonTemplate(containerConfiguration, configDirectory.resolve(imageId.getHash()));
  }
Writes a container configuration to {@code (cache directory)/local/config/(image id)}.

@param imageId the ID of the image to store the container configuration for
@param containerConfiguration the container configuration
@throws IOException if an I/O exception occurs
jib-core/src/main/java/com/google/cloud/tools/jib/cache/CacheStorageWriter.java