withLabel method

GenericContainer withLabel(
  1. String name,
  2. String value
)

Adds the label name=value to the container.

Implementation

GenericContainer withLabel(String name, String value) {
  _labels[name] = value;
  return this;
}