withCommand method

GenericContainer withCommand(
  1. List<String> command
)

Replaces the image's default command (CMD) with command.

Implementation

GenericContainer withCommand(List<String> command) {
  _command = List.of(command);
  return this;
}