Skip to content

Commit

Permalink
Merge pull request #435 from camptocamp/log-stoped-constainers
Browse files Browse the repository at this point in the history
Also log stoped containers
  • Loading branch information
sbrunner authored Feb 14, 2022
2 parents 83847e8 + c5e9d8c commit 5edd6cc
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 5edd6cc

Please sign in to comment.