mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
new: force delete docker container
This commit is contained in:
@@ -239,7 +239,8 @@ enum DockerCmdType {
|
||||
}
|
||||
}
|
||||
|
||||
static final execAll = values.map((e) => e.exec).join(' && echo $seperator && ');
|
||||
static final execAll =
|
||||
values.map((e) => e.exec).join(' && echo $seperator && ');
|
||||
}
|
||||
|
||||
enum BSDStatusCmdType {
|
||||
|
||||
@@ -137,7 +137,12 @@ class DockerProvider extends ChangeNotifier {
|
||||
|
||||
Future<DockerErr?> start(String id) async => await run('docker start $id');
|
||||
|
||||
Future<DockerErr?> delete(String id) async => await run('docker rm $id');
|
||||
Future<DockerErr?> delete(String id, bool force) async {
|
||||
if (force) {
|
||||
return await run('docker rm -f $id');
|
||||
}
|
||||
return await run('docker rm $id');
|
||||
}
|
||||
|
||||
Future<DockerErr?> restart(String id) async =>
|
||||
await run('docker restart $id');
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 645;
|
||||
static const int build = 646;
|
||||
static const String engine = "3.16.0";
|
||||
static const String buildAt = "2023-11-20 16:47:25";
|
||||
static const int modifications = 5;
|
||||
static const int script = 27;
|
||||
static const String buildAt = "2023-11-23 00:07:00";
|
||||
static const int modifications = 7;
|
||||
static const int script = 28;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user