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: case ContainerMenu.terminal:
AppRoutes.ssh( AppRoutes.ssh(
spi: widget.spi, 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); ).go(context);
break; break;
// case DockerMenuType.stats: // case DockerMenuType.stats: