DockerProcess class

Access wrapper to interact with a docker container as a process.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

exec(List<String> args) Future<ProcessResult>
Executes the command
isRunning() Future<bool>
Checks whether the container is running.
kill({ProcessSignal signal = ProcessSignal.sigkill}) Future
Kill the docker container.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop() Future
Stop the docker container.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

start({required String image, required String name, String? dockerExecutable, String? dockerCommand, List<String>? dockerArgs, String? network, String? hostname, Map<String, String>? environment, List<String>? ports, List<String>? imageArgs, bool sudo = false, bool? cleanup, FutureOr<bool> readySignal(String line)?, Duration? timeout}) Future<DockerProcess>
Starts a docker container.