canonical / docker-snap

https://snapcraft.io/docker
MIT License
54 stars 27 forks source link

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

Open hartmutobendorf opened 2 months ago

hartmutobendorf commented 2 months ago

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