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

snap can not run /usr/bin/ssh => docker cannot use remote context #169

Open
hartmutobendorf opened this issue Aug 15, 2024 · 0 comments · May be fixed by #171
Open

snap can not run /usr/bin/ssh => docker cannot use remote context #169

hartmutobendorf opened this issue Aug 15, 2024 · 0 comments · May be fixed by #171
Assignees
Labels
bug Something isn't working

Comments

@hartmutobendorf
Copy link

snap execution of /usr/bin/ssh fails => remote context can not be used

Why this is important

When running docker in a VM, or on a production host, I cannot manage the containers from my local machine.
This also means I cannot use/access containers in my IDE (VS Code). Running a docker blueprint in multipass or lxd is only possible with an install of the upstream, unsnapped docker.

To reproduce:

docker context create rem --docker "host=ssh://user@host"
docker context use rem
docker ps

fails with the error message
error during connect: Get "http://docker.example.com/v1.24/containers/json": fork/exec /usr/bin/ssh: permission denied

hartmutobendorf added a commit to hartmutobendorf/docker-snap that referenced this issue Aug 21, 2024
canonical#170

added ssh-keys interface
added ssh-public-keys interface
added openssh-client for staging
added bind-file layout for /use/bin/ssh
hartmutobendorf added a commit to hartmutobendorf/docker-snap that referenced this issue Aug 21, 2024
canonical#170

added ssh-keys interface
added ssh-public-keys interface
added openssh-client for staging
added bind-file layout for /use/bin/ssh
@locnnil locnnil added the bug Something isn't working label Oct 8, 2024
@locnnil locnnil self-assigned this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants