DockerProcess class
Access wrapper to interact with a docker container as a process.
Constructors
- DockerProcess.fromName(String name, {String? dockerExecutable})
-
factory
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, {String? name}) → Future<ProcessResult> - Executes the command
-
isRunning(
{String? name}) → Future< bool> - Checks whether the container is running.
-
kill(
{String? name, ProcessSignal signal = ProcessSignal.sigkill}) → Future< void> - Kill the docker container.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stop(
{String? name}) → Future< void> - 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 verbose = false, bool? cleanup, FutureOr<bool> readySignal(String line)?, Duration? timeout}) → Future<DockerProcess> - Starts a docker container.