aio-libs / aiodocker

Python Docker API client based on asyncio and aiohttp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connect daemon via ssh

royreznik opened this issue · comments

Long story short

I need to connect to my docker daemon via ssh, (url = 'ssh://username@hostname')
This functionality is also implemented in the docker cli and docker-py

  • Expected behaviour:

Using ssh to connect to the daemon

  • Actual behaviour:

None

How to reproduce

Docker('ssh://username@hostname')

Your environment

Linux - Centos 7 python 3.8

Sorry, I don't think that the feature can be implemented easily.
Please feel free to provide a pull request though.

Docker-py is using paramiko to provide ssh connection (ref).
Maybe it is possible to use asyncssh which provides a superset of the functionality found in asyncio transport ?