1
0

Output docker compose ps results

This commit is contained in:
David Boreham 2022-10-24 12:39:51 -06:00
parent 2180aad63c
commit 302ff75593

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")