diff --git a/broker/binds/containers.py b/broker/binds/containers.py index a574d9d..064ec42 100644 --- a/broker/binds/containers.py +++ b/broker/binds/containers.py @@ -198,6 +198,8 @@ def __init__(self, port=2375, **kwargs): self._ClientClass = DockerClient if self.host == "localhost": self.uri = "unix://var/run/docker.sock" + elif kwargs.get("port") == SSH_PORT: + self.uri = "ssh://{username}@{host}:{port}".format(**kwargs) else: self.uri = "tcp://{username}@{host}".format(**kwargs)