aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2019-03-20 14:48:21 +0000
committerBryn M. Reeves <bmr@redhat.com>2019-03-20 14:48:21 +0000
commit372e9389e83befbb9d48ae9bebd83c7dde87d95c (patch)
treeeccee95a0e01f3d8210c248492f440ebe8117c83
parent785d72bcfa661d96ba2b20b425a3d6d52d51a1da (diff)
downloadsos-372e9389e83befbb9d48ae9bebd83c7dde87d95c.tar.gz
[docker] do not collect 'system df' by default
Gates collection of 'docker system df' behind the docker.size option as this command can take a long time to run just like 'ps -as'. Related: #1580 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/docker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/docker.py b/sos/plugins/docker.py
index d8c854f9..80c4946f 100644
--- a/sos/plugins/docker.py
+++ b/sos/plugins/docker.py
@@ -49,7 +49,6 @@ class Docker(Plugin):
'ps',
'ps -a',
'stats --no-stream',
- 'system df',
'version',
'volume ls'
]
@@ -57,9 +56,10 @@ class Docker(Plugin):
for subcmd in subcmds:
self.add_cmd_output("docker %s" % subcmd)
- # separately grab ps -s as this can take a *very* long time
+ # separately grab these separately as they can take a *very* long time
if self.get_option('size'):
self.add_cmd_output('docker ps -as')
+ self.add_cmd_output('docker system df')
nets = self.get_command_output('docker network ls')