stop method
Removes the container.
Parameters:
force— send SIGKILL if the container is still running. Default:true.deleteVolume— remove anonymous volumes attached to the container. Default:true.
No-ops when the container was never started.
Implementation
Future<void> stop({bool force = true, bool deleteVolume = true}) async {
if (_containerId != null) {
await _dockerClient.removeContainer(
_containerId!,
force: force,
removeVolumes: deleteVolume,
);
}
}