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