Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Add mount command for Windows #4377

Open
masaeedu opened this issue Jan 30, 2018 · 4 comments
Open

Add mount command for Windows #4377

masaeedu opened this issue Jan 30, 2018 · 4 comments

Comments

@masaeedu
Copy link

The FUSE+SSHFS approach used in #4018 to mount remote volumes on Linux clients should be supported on Windows as well.

To help get this started, I forked a GUI app that used an analogous Dokany+SSH.NET approach, and added a CLI. Using this, it is possible to mount all volumes on the remote docker machine as drives.

Here's some Powershell I ran to test:

$ip = docker-machine ip
$l = [int][char]"M"
docker volume ls --format "{{.Mountpoint}}" | % {
    $arglist = "-d $([char]$l) -r $_ -h $ip -u root -x"
    echo $arglist
    start-process -NoNewWindow -FilePath "./sshfs.exe" -RedirectStandardInput ./pass.txt -ArgumentList $arglist
    $l = $l + 1
}

Which mounts all volumes from the docker-machine instance locally

image

Note that I'm ssh-ing in with a password for the root user, which I manually created. The docker user has no access to the volume folders, and Dokan does not have an analog for the allow_root option from SSHFS as far as I'm aware. Probably in order to do this properly you need a dedicated user that has access to the volume folders, or you should just give docker access.

Overall the approach is probably not as nice as #4018, given the relative immaturity of FUSE on Windows and the hacked together sshfs CLI, but it would be useful for Windows users looking to work with volumes on a remote docker machine.

@Johnz86
Copy link

Johnz86 commented Mar 14, 2018

Ok I tried today, the mount command on windows. I get response.

You must have a copy of the sshfs binary locally to use the mount feature.

Please update the docs, how to hack together the sshfs cli on windows so it works.
Or
Write to the docs, that windows sshfs is not supported.
I spend over 3 hours trying to figure this out and cursing docker toolbox. Finally I gave up. Please do something with it.

@RRicardotj
Copy link

Ok I tried today, the mount command on windows. I get response.

You must have a copy of the sshfs binary locally to use the mount feature.

Please update the docs, how to hack together the sshfs cli on windows so it works.
Or
Write to the docs, that windows sshfs is not supported.
I spend over 3 hours trying to figure this out and cursing docker toolbox. Finally I gave up. Please do something with it.

I have the same issue but in my case on a mac book 6.1 using docker toolbox. Please any help will be appreciated

@deniercounter
Copy link

deniercounter commented Dec 31, 2019

Wow .. no solution till now?

https://github.com/feo-cz/win-sshfs seems to be abandoned:

Latest commit
dcb33f3
on 20 Oct 2016

@ghost
Copy link

ghost commented Jan 7, 2020

@deniercounter "Docker Machine is now in maintenance mode" #4537

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

No branches or pull requests

4 participants