Skip to content

Instantly share code, notes, and snippets.

@jammi
Created April 29, 2019 09:16
Show Gist options
  • Save jammi/b68406919d2636fd917df3ae5292f6e2 to your computer and use it in GitHub Desktop.
Save jammi/b68406919d2636fd917df3ae5292f6e2 to your computer and use it in GitHub Desktop.
Docker-compose with ssh:// protocol DOCKER_HOST set doesn't work.
$ docker-compose build
Traceback (most recent call last):
File "site-packages/docker/api/client.py", line 151, in __init__
NameError: name 'SSHAdapter' is not defined
During handling of the above exception, another exception occurred:
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 42, in project_from_options
File "compose/cli/command.py", line 123, in get_project
File "compose/cli/command.py", line 94, in get_client
File "compose/cli/docker_client.py", line 127, in docker_client
File "site-packages/docker/api/client.py", line 156, in __init__
docker.errors.DockerException: Install paramiko package to enable ssh:// support
[25234] Failed to execute script docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment