diff --git a/docker/utils/utils.py b/docker/utils/utils.py index e9930e39..f741ee27 100644 --- a/docker/utils/utils.py +++ b/docker/utils/utils.py @@ -166,6 +166,8 @@ def parse_host(addr): addr = addr.strip() if addr.startswith('http://'): addr = addr.replace('http://', 'tcp://') + if addr.startswith('http+unix://'): + addr = addr.replace('http+unix://', 'unix://') if addr == 'tcp://': raise errors.DockerException("Invalid bind address format: %s" % addr)