Support http+unix protocol

This commit is contained in:
Joffrey F 2014-07-03 04:20:42 +02:00
parent d33ba883f1
commit 53de7547e1
1 changed files with 2 additions and 0 deletions

View File

@ -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)