forked from cerc-io/stack-orchestrator
Output docker compose ps results
This commit is contained in:
parent
2180aad63c
commit
302ff75593
@ -82,7 +82,9 @@ def command(ctx, include, exclude, cluster, command):
|
|||||||
elif command == "ps":
|
elif command == "ps":
|
||||||
if verbose:
|
if verbose:
|
||||||
print("Running compose ps")
|
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":
|
elif command == "logs":
|
||||||
if verbose:
|
if verbose:
|
||||||
print("Running compose logs")
|
print("Running compose logs")
|
||||||
|
Loading…
Reference in New Issue
Block a user