fix/feat: able to open terminal to any containers

This commit is contained in:
Andras Bacsai
2024-09-17 11:54:25 +02:00
parent d92819ab60
commit 35b9b7fdf2
2 changed files with 27 additions and 52 deletions

View File

@@ -775,6 +775,18 @@ $schema://$host {
}
}
public function loadAllContainers(): Collection
{
if ($this->isFunctional()) {
$containers = instant_remote_process(["docker ps -a --format '{{json .}}'"], $this);
$containers = format_docker_command_output_to_json($containers);
return collect($containers);
}
return collect([]);
}
public function loadUnmanagedContainers(): Collection
{
if ($this->isFunctional()) {