diff options
-rw-r--r-- | sos/plugins/docker.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sos/plugins/docker.py b/sos/plugins/docker.py index a44264a4..5b2acff5 100644 --- a/sos/plugins/docker.py +++ b/sos/plugins/docker.py @@ -80,9 +80,7 @@ class Docker(Plugin): if insp: for container in insp: self.add_cmd_output("docker inspect %s" % container) - - if self.get_option('logs'): - for container in insp: + if self.get_option('logs'): self.add_cmd_output("docker logs -t %s" % container) |