Skip to content

Commit

Permalink
List containers
Browse files Browse the repository at this point in the history
  • Loading branch information
GamerClassN7 authored and bastien-phi committed Jan 2, 2025
1 parent c93db8f commit 367c542
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Services/DockerContainerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,13 @@ public function delete(string $containerId): bool

return true;
}

public function list(): array
{
$response = $this->driver()
->asGet()
->send("/containers/json");

return $response;
}
}

0 comments on commit 367c542

Please sign in to comment.