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

@@ -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: