Skip to content

Commit

Permalink
Also log stoped containers
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Feb 10, 2022
1 parent 83847e8 commit c5e9d8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion c2cciutils/scripts/docker_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def main() -> None:
timestamp_file.write(datetime.utcnow().isoformat())

for name in (
subprocess.run(["docker", "ps", "--format", "{{ .Names }}"], check=True, stdout=subprocess.PIPE)
subprocess.run(
["docker", "ps", "--all", "--format", "{{ .Names }}"], check=True, stdout=subprocess.PIPE
)
.stdout.decode()
.split("\n")
):
Expand Down

0 comments on commit c5e9d8c

Please sign in to comment.