mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-19 00:04:22 +01:00
fix: podman term
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user