aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2019-05-15 15:04:57 -0400
committerPavel Moravec <pmoravec@redhat.com>2019-08-25 10:36:39 +0200
commitda5498eccc13a855eb34bb2f44ff1c6357a11534 (patch)
treef7303d4780cd28c6d4e9690093a0255fdb66dd7b
parent9a9ea5ee21df2759f46688d09c45ecd7a1a871a8 (diff)
downloadsos-da5498eccc13a855eb34bb2f44ff1c6357a11534.tar.gz
[docker] Collect proxy env vars
Adds collection of proxy environment variables. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/docker.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/sos/plugins/docker.py b/sos/plugins/docker.py
index 4a68a640..98764cef 100644
--- a/sos/plugins/docker.py
+++ b/sos/plugins/docker.py
@@ -33,6 +33,15 @@ class Docker(Plugin):
"/var/lib/docker/repositories-*"
])
+ self.add_env_var([
+ 'HTTP_PROXY',
+ 'HTTPS_PROXY',
+ 'NO_PROXY',
+ 'ALL_PROXY',
+ 'DOCKER_BUILD_PROXY',
+ 'DOCKER_RUN_PROXY'
+ ])
+
self.add_journal(units="docker")
self.add_cmd_output("ls -alhR /etc/docker")