copy method
DockerContainerConfig<DockerContainer>
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,
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,
);
}