diff options
| author | Joffrey F <f.joffrey@gmail.com> | 2015-09-01 16:36:32 -0700 |
|---|---|---|
| committer | Joffrey F <f.joffrey@gmail.com> | 2015-09-01 16:36:32 -0700 |
| commit | 7dce129180cb0ee88bc4bce7d36aa76332ebb36f (patch) | |
| tree | e2122953ce5d7b86771cb60ee79814edd50b08c7 /docker/clientbase.py | |
| parent | c485bd8dc0e0daf9834df7d72fdf8e21f36985db (diff) | |
| parent | 1362938f03b2eca3edb0682b5ea48c841dc636c5 (diff) | |
| download | docker-py-7dce129180cb0ee88bc4bce7d36aa76332ebb36f.tar.gz | |
Merge pull request #754 from aanand/default-to-tcp-url-on-windows
Default to 127.0.0.1:2375 on Windows
Diffstat (limited to 'docker/clientbase.py')
| -rw-r--r-- | docker/clientbase.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/clientbase.py b/docker/clientbase.py index 90dba63..a70339a 100644 --- a/docker/clientbase.py +++ b/docker/clientbase.py @@ -1,5 +1,6 @@ import json import struct +import sys import requests import requests.exceptions @@ -31,7 +32,7 @@ class ClientBase(requests.Session): self._auth_configs = auth.load_config() - base_url = utils.parse_host(base_url) + base_url = utils.parse_host(base_url, sys.platform) if base_url.startswith('http+unix://'): self._custom_adapter = unixconn.UnixAdapter(base_url, timeout) self.mount('http+docker://', self._custom_adapter) |
