You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
File "/path/to/my-script.py", line 193, in wait_started
result = my_container.exec_run(
^^^^^^^^^^^^^^^^^^^^^^^
File "/path/to/my/virtualenv/lib/python3.11/site-packages/docker/models/containers.py", line 210, in exec_run
exec_output = self.client.api.exec_start(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/to/my/virtualenv/lib/python3.11/site-packages/docker/utils/decorators.py", line 19, in wrapped
return f(self, resource_id, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/to/my/virtualenv/lib/python3.11/site-packages/docker/api/exec_api.py", line 173, in exec_start
output = self._read_from_socket(res, stream, tty=tty, demux=demux)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/to/my/virtualenv/lib/python3.11/site-packages/docker/api/client.py", line 437, in _read_from_socket
response.close()
File "/path/to/my/virtualenv/lib/python3.11/site-packages/requests/models.py", line 1030, in close
self.raw.close()
File "/path/to/my/virtualenv/lib/python3.11/site-packages/urllib3/response.py", line 630, in close
self._connection.close()
File "/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/lib/python3.11/http/client.py", line 964, in close
sock.close() # close it manually... there may be other refs
^^^^^^^^^^^^
File "/path/to/my/virtualenv/lib/python3.11/site-packages/docker/transport/sshconn.py", line 94, in close
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
I'm using use_ssh_client because I need a SSH ProxyJump to reach the Docker host and for some reason it doesn't work when using Paramiko, it just times out. With use_ssh_client everything seems to work, I'm able to list and pull images, run containers etc. but running exec_run crashes every time.
$ pip freeze | grep docker
docker==7.0.0
The text was updated successfully, but these errors were encountered:
Code:
Crash stack trace:
I'm using
use_ssh_client
because I need a SSH ProxyJump to reach the Docker host and for some reason it doesn't work when using Paramiko, it just times out. Withuse_ssh_client
everything seems to work, I'm able to list and pull images, run containers etc. but runningexec_run
crashes every time.The text was updated successfully, but these errors were encountered: