forked from extern/podman-compose
Show stopped containers in ps
This commit is contained in:
parent
ddd582c861
commit
e7a9bd3b70
@ -1092,9 +1092,9 @@ def compose_down(compose, args):
|
|||||||
def compose_ps(compose, args):
|
def compose_ps(compose, args):
|
||||||
proj_name = compose.project_name
|
proj_name = compose.project_name
|
||||||
if args.quiet == True:
|
if args.quiet == True:
|
||||||
compose.podman.run(["ps", "--format", "{{.ID}}", "--filter", f"label=io.podman.compose.project={proj_name}"])
|
compose.podman.run(["ps", "-a", "--format", "{{.ID}}", "--filter", f"label=io.podman.compose.project={proj_name}"])
|
||||||
else:
|
else:
|
||||||
compose.podman.run(["ps", "--filter", f"label=io.podman.compose.project={proj_name}"])
|
compose.podman.run(["ps", "-a", "--filter", f"label=io.podman.compose.project={proj_name}"])
|
||||||
|
|
||||||
@cmd_run(podman_compose, 'run', 'create a container similar to a service to run a one-off command')
|
@cmd_run(podman_compose, 'run', 'create a container similar to a service to run a one-off command')
|
||||||
def compose_run(compose, args):
|
def compose_run(compose, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user