diff --git a/docker/client.py b/docker/client.py index 998ebacbc1..0a932482ee 100644 --- a/docker/client.py +++ b/docker/client.py @@ -317,7 +317,7 @@ def build(self, path=None, tag=None, quiet=False, fileobj=None, elif fileobj is not None: context = utils.mkbuildcontext(fileobj) elif path.startswith(('http://', 'https://', - 'git://', 'github.com/')): + 'git://', 'github.com/', 'git@')): remote = path elif not os.path.isdir(path): raise TypeError("You must specify a directory to build in path")