public JibContainerBuilder setLabels(Map<String, String> labelMap) {
    containerBuildPlanBuilder.setLabels(labelMap);
    containerConfigurationBuilder.setLabels(labelMap);
    return this;
  }
Sets the labels for the container. This replaces any previously-set labels.

<p>This is similar to <a href="https://docs.docker.com/engine/reference/builder/#label">{@code
LABEL} in Dockerfiles</a>.

@param labelMap a map of label keys to values
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java