fix: podman term

This commit is contained in:
lollipopkit
2024-06-10 21:32:45 +08:00
parent 3bc03c1364
commit 2bf0b25ee5

View File

@@ -562,7 +562,10 @@ class _ContainerPageState extends State<ContainerPage> {
case ContainerMenu.terminal:
AppRoutes.ssh(
spi: widget.spi,
initCmd: 'docker exec -it ${dItem.id} sh',
initCmd: '${switch (_container.type) {
ContainerType.podman => 'podman',
ContainerType.docker => 'docker',
}} exec -it ${dItem.id} sh',
).go(context);
break;
// case DockerMenuType.stats: