copy method

DockerContainerConfig<DockerContainer> copy({
  1. String? image,
  2. String? version,
  3. List<String>? imageArgs,
  4. String? name,
  5. String? network,
  6. String? hostname,
  7. List<String>? ports,
  8. List<int>? hostPorts,
  9. List<int>? containerPorts,
  10. Map<String, String>? environment,
  11. Map<String, String>? volumes,
  12. bool? cleanContainer,
  13. int? outputLimit,
  14. bool? outputAsLines,
  15. OutputReadyFunction? stdoutReadyFunction,
  16. OutputReadyFunction? stderrReadyFunction,
})

Implementation

DockerContainerConfig copy({
  String? image,
  String? version,
  List<String>? imageArgs,
  String? name,
  String? network,
  String? hostname,
  List<String>? ports,
  List<int>? hostPorts,
  List<int>? containerPorts,
  Map<String, String>? environment,
  Map<String, String>? volumes,
  bool? cleanContainer,
  int? outputLimit,
  bool? outputAsLines,
  OutputReadyFunction? stdoutReadyFunction,
  OutputReadyFunction? stderrReadyFunction,
}) {
  return DockerContainerConfig<D>(
    image ?? this.image,
    version: version ?? this.version,
    imageArgs: imageArgs ?? this.imageArgs,
    name: name ?? this.name,
    network: network ?? this.network,
    hostname: hostname ?? this.hostname,
    ports: ports ?? this.ports,
    hostPorts: hostPorts ?? this.hostPorts,
    containerPorts: containerPorts ?? this.containerPorts,
    environment: environment ?? this.environment,
    volumes: volumes ?? this.volumes,
    cleanContainer: cleanContainer ?? this.cleanContainer,
    outputLimit: outputLimit ?? this.outputLimit,
    outputAsLines: outputAsLines ?? this.outputAsLines,
    stdoutReadyFunction: stdoutReadyFunction ?? this.stdoutReadyFunction,
    stderrReadyFunction: stderrReadyFunction ?? this.stderrReadyFunction,
  );
}