mirror of https://github.com/docker/docker-py.git
Support http+unix protocol
This commit is contained in:
parent
d33ba883f1
commit
53de7547e1
|
@ -166,6 +166,8 @@ def parse_host(addr):
|
||||||
addr = addr.strip()
|
addr = addr.strip()
|
||||||
if addr.startswith('http://'):
|
if addr.startswith('http://'):
|
||||||
addr = addr.replace('http://', 'tcp://')
|
addr = addr.replace('http://', 'tcp://')
|
||||||
|
if addr.startswith('http+unix://'):
|
||||||
|
addr = addr.replace('http+unix://', 'unix://')
|
||||||
|
|
||||||
if addr == 'tcp://':
|
if addr == 'tcp://':
|
||||||
raise errors.DockerException("Invalid bind address format: %s" % addr)
|
raise errors.DockerException("Invalid bind address format: %s" % addr)
|
||||||
|
|
Loading…
Reference in New Issue