public void writeLocalConfig(
      DescriptorDigest imageId, ContainerConfigurationTemplate containerConfiguration)
      throws IOException {
    cacheStorageWriter.writeLocalConfig(imageId, containerConfiguration);
  }
Writes a container configuration to {@code (cache directory)/local/config/(image id)}. An image
ID is a SHA hash of a container configuration JSON. The value is also shown as IMAGE ID in
{@code docker images}.

<p>Note: the {@code imageId} to the {@code containerConfiguration} is a one-way relationship;
there is no guarantee that {@code containerConfiguration}'s SHA will be {@code imageId}, since
the original container configuration is being rewritten here rather than being moved.

@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/Cache.java