withEnv method

DockerContainer withEnv(
  1. String key,
  2. String value
)

Sets a single environment variable key to value.

Returns this for chaining.

Implementation

DockerContainer withEnv(String key, String value) {
  _env[key] = value;
  return this;
}