Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dry can not use ssh with DOCKER_HOST #127

Closed
bulletmark opened this issue Apr 1, 2020 · 2 comments · Fixed by #128
Closed

Dry can not use ssh with DOCKER_HOST #127

bulletmark opened this issue Apr 1, 2020 · 2 comments · Fixed by #128
Assignees

Comments

@bulletmark
Copy link

Docker provides DOCKER_HOST access over ssh but dry does not:

pc:~ export DOCKER_HOST="ssh://vb1" 
pc:~ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
ee51f3403535        keepalived:latest   "/etc/keepalived/sta…"   30 minutes ago      Up 26 minutes                                keepalived
32f8de6c3b34        portainer/agent     "./agent"                30 minutes ago      Up 26 minutes       0.0.0.0:9001->9001/tcp   portainer
b38f73b4f61f        smsif2:latest       "python -u smsif2"       30 minutes ago      Up 26 minutes       0.0.0.0:8010->8010/tcp   smsif2
pc:~ dry
INFO[0000] Dry could not start: Invalid Host: Invalid bind address format: ssh://vb1 
pc:~ unset DOCKER_HOST
pc:~ docker -H="ssh://vb1" ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
ee51f3403535        keepalived:latest   "/etc/keepalived/sta…"   30 minutes ago      Up 26 minutes                                keepalived
32f8de6c3b34        portainer/agent     "./agent"                30 minutes ago      Up 26 minutes       0.0.0.0:9001->9001/tcp   portainer
b38f73b4f61f        smsif2:latest       "python -u smsif2"       30 minutes ago      Up 26 minutes       0.0.0.0:8010->8010/tcp   smsif2
pc:~ dry -H="ssh://vb1"
INFO[0000] Dry could not start: Invalid Host: Invalid bind address format: ssh://vb1
pc:~ dry --version
dry version 0.10-beta.1, build 119fd047

Up to date Arch Linux, AUR version 0.10-1.

@moncho
Copy link
Owner

moncho commented Apr 1, 2020

ssh support from Docker is new, isn't it? I have to take a look at how the Docker CLI does it to see if dry can support it.

@moncho moncho self-assigned this Apr 1, 2020
@bulletmark
Copy link
Author

bulletmark commented Apr 1, 2020

I'm new to docker but it looks like it was added to the docker 18.09.0 release in Nov 2018. Very handy option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants