MCPcopy Index your code
hub / github.com/docker/docker-py / connect

Method connect

docker/transport/sshconn.py:107–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105 self.ssh_host = host
106
107 def connect(self):
108 if self.ssh_transport:
109 sock = self.ssh_transport.open_session()
110 sock.settimeout(self.timeout)
111 sock.exec_command('docker system dial-stdio')
112 else:
113 sock = SSHSocket(self.ssh_host)
114 sock.settimeout(self.timeout)
115 sock.connect()
116
117 self.sock = sock
118
119
120class SSHConnectionPool(urllib3.connectionpool.HTTPConnectionPool):

Callers

nothing calls this directly

Calls 3

connectMethod · 0.95
SSHSocketClass · 0.85
settimeoutMethod · 0.45

Tested by

no test coverage detected