Commit dfe68b33 authored by David Wilson's avatar David Wilson

Handle docker running on localhost.

parent c58d7f51
......@@ -56,6 +56,9 @@ class DockerizedSshDaemon(object):
self.host = self.get_host()
def get_host(self):
if self.docker.api.base_url == 'http+docker://localunixsocket':
return 'localhost'
parsed = urlparse.urlparse(self.docker.api.base_url)
return parsed.netloc.partition(':')[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment