fix & opt.

- fix: ssh paste
- opt.: docker logs & shell
This commit is contained in:
lollipopkit
2023-05-27 18:58:38 +08:00
parent 4f45ce3f50
commit 02494651fc
9 changed files with 36 additions and 55 deletions

View File

@@ -163,14 +163,6 @@ class DockerProvider extends BusyProvider {
return null;
}
Future<String> logs(String id) async {
setBusyState();
final cmd = _wrap('docker logs $id');
final result = await client!.run(cmd);
setBusyState(false);
return result.string;
}
// judge whether to use DOCKER_HOST / sudo
String _wrap(String cmd) {
final dockerHost = dockerStore.getDockerHost(hostId!);