fix: podman log

This commit is contained in:
lollipopkit
2024-06-06 18:52:20 +08:00
parent 701b1b811f
commit a5a84c0cdd
6 changed files with 35 additions and 28 deletions

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 935;
static const int build = 936;
static const String engine = "3.22.1";
static const String buildAt = "2024-06-06 16:17:37";
static const int modifications = 18;
static const String buildAt = "2024-06-06 16:18:25";
static const int modifications = 2;
static const int script = 48;
}

View File

@@ -553,7 +553,10 @@ class _ContainerPageState extends State<ContainerPage> {
case ContainerMenu.logs:
AppRoutes.ssh(
spi: widget.spi,
initCmd: 'docker logs -f --tail 100 ${dItem.id}',
initCmd: '${switch (_container.type) {
ContainerType.podman => 'podman',
ContainerType.docker => 'docker',
}} logs -f --tail 100 ${dItem.id}',
).go(context);
break;
case ContainerMenu.terminal: