Output docker compose ps results

pull/29/head
David Boreham 2022-10-24 12:39:51 -06:00
parent 2180aad63c
commit 302ff75593
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@ def command(ctx, include, exclude, cluster, command):
elif command == "ps":
if verbose:
print("Running compose ps")
docker.compose.ps()
container_list = docker.compose.ps()
for container in container_list:
print(f"id: {container.id}, name: {container.name}")
elif command == "logs":
if verbose:
print("Running compose logs")