Skip to content

Commit

Permalink
Quick fix for docker ssh connection
Browse files Browse the repository at this point in the history
This time correctly accounting for multiple connection options in the
Docker bind, allowing ssh (which is what most people are currently
using) to work.
  • Loading branch information
JacobCallahan committed Aug 8, 2024
1 parent 35ad5c6 commit 4597520
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions broker/binds/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4597520

Please sign in to comment.