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
docker-py should parse ssh:// as a valid protocol,
and docker-compose command can connect to remote the docker daemon.
Actual Behavior
Failed to parse protocol ssh://
$ docker-compose -H ssh://docker-18-09-test up -d
Traceback (most recent call last):
File "docker-compose", line 6, in <module>
File "compose/cli/main.py", line 71, in main
File "compose/cli/main.py", line 124, in perform_command
File "compose/cli/command.py", line 41, in project_from_options
File "compose/cli/command.py", line 121, in get_project
File "compose/cli/command.py", line 92, in get_client
File "compose/cli/docker_client.py", line 127, in docker_client
File "site-packages/docker/api/client.py", line 118, in __init__
File "site-packages/docker/utils/utils.py", line 256, in parse_host
docker.errors.DockerException: Invalid bind address protocol: ssh://docker-18-09-test
[8412] Failed to execute script docker-compose
$ DOCKER_HOST=ssh://docker-18-09-test docker-compose up -d
Traceback (most recent call last):
File "docker-compose", line 6, in <module>
File "compose/cli/main.py", line 71, in main
File "compose/cli/main.py", line 124, in perform_command
File "compose/cli/command.py", line 41, in project_from_options
File "compose/cli/command.py", line 121, in get_project
File "compose/cli/command.py", line 92, in get_client
File "compose/cli/docker_client.py", line 127, in docker_client
File "site-packages/docker/api/client.py", line 118, in __init__
File "site-packages/docker/utils/utils.py", line 256, in parse_host
docker.errors.DockerException: Invalid bind address protocol: ssh://docker-18-09-test
[8460] Failed to execute script docker-compose
It would be great if docker-py supports ssh:// in DOCKER_HOST
Thanks!
The text was updated successfully, but these errors were encountered:
Hi there,
Docker 18.09 now supports
docker -H ssh://me@server
docker/cli#1014
I tried using it with
docker-compose
, but got an error.I found this error caused by
docker-py
instead ofdocker-compose
.So, I will report this here.
version
docker-py version: 3.4.1
environments
docker client
docker daemon
Configuration
Expected Behavior
docker-py
should parsessh://
as a valid protocol,and
docker-compose
command can connect to remote the docker daemon.Actual Behavior
Failed to parse protocol
ssh://
It would be great if
docker-py
supportsssh://
in DOCKER_HOSTThanks!
The text was updated successfully, but these errors were encountered: