From ddbe14033101742b0e1c792deb8cfd39b1d7f84e Mon Sep 17 00:00:00 2001 From: Jacob Larsen Date: Sun, 8 Oct 2017 23:06:36 +0200 Subject: [PATCH] Do not detect as a remote run if DOCKER_HOST is set to a unix:// socket --- scuba/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scuba/__main__.py b/scuba/__main__.py index 566be462..71b129b8 100644 --- a/scuba/__main__.py +++ b/scuba/__main__.py @@ -148,7 +148,10 @@ def cleanup_tempfiles(self): @property def is_remote_docker(self): - return 'DOCKER_HOST' in os.environ + if 'DOCKER_HOST' in os.environ: + if not os.environ['DOCKER_HOST'].startswith('unix://'): + return True + return False def add_env(self, name, val): '''Add an environment variable to the docker run invocation