mirror of https://github.com/docker/docker-py.git
Merge pull request #1928 from mnottale/fix-spurious-resolution-macos-slowdown
Workaround requests resolving our unix socket URL on macosx.
This commit is contained in:
commit
9b8e022fa1
|
@ -119,7 +119,9 @@ class APIClient(
|
|||
)
|
||||
self.mount('http+docker://', self._custom_adapter)
|
||||
self._unmount('http://', 'https://')
|
||||
self.base_url = 'http+docker://localunixsocket'
|
||||
# host part of URL should be unused, but is resolved by requests
|
||||
# module in proxy_bypass_macosx_sysconf()
|
||||
self.base_url = 'http+docker://localhost'
|
||||
elif base_url.startswith('npipe://'):
|
||||
if not IS_WINDOWS_PLATFORM:
|
||||
raise DockerException(
|
||||
|
|
|
@ -512,7 +512,7 @@ def post_fake_network_disconnect():
|
|||
|
||||
|
||||
# Maps real api url to fake response callback
|
||||
prefix = 'http+docker://localunixsocket'
|
||||
prefix = 'http+docker://localhost'
|
||||
if constants.IS_WINDOWS_PLATFORM:
|
||||
prefix = 'http+docker://localnpipe'
|
||||
|
||||
|
|
Loading…
Reference in New Issue