docker-osx-dev icon indicating copy to clipboard operation
docker-osx-dev copied to clipboard

Did you try sshfs ?

Open agebrock opened this issue 10 years ago • 5 comments

Hi there i played a lot like you with all kind of ways to connect the volumes somehow. I miss my best bet on your list, sshfs... i had the best results connecting the box to the mac, even mongodb and meteor was able to run.

Hope that helps someone somehow ...

agebrock avatar Aug 23 '15 19:08 agebrock

Can you post more info on your setup?

brikis98 avatar Aug 28 '15 09:08 brikis98

Interesting topic. Maybe there's an option to replace current rsync with osxfuse-based solution? I'd also expect sshfs to be the fastest.

ain avatar Sep 01 '15 12:09 ain

Does anyone have time to play around with FUSE, sshfs, etc? I'd love to see how they compare with rsync in terms of performance and ease of setup.

FWIW, I played around with a number of syncing solutions years ago in a slightly different context and found all of the two-way solutions--including unison, sshfs, fuse, aerofs, and a bunch of others--to be either too slow or too unreliable (e.g., random files wouldn't sync, errors would show up intermittently, etc). That said, I was syncing between remote systems, so perhaps on the same computer when talking to a Docker VM, it would be a completely different story.

brikis98 avatar Sep 01 '15 12:09 brikis98

Unfortunately I can only second that notion. At the time I ran MacFUSE, also in different (remote) context, it was completely unreliable. Current bug base of osxfuse isn't very assuring either.

ain avatar Sep 01 '15 12:09 ain

Hi there, i can't remember the exact setup but sshfs was used on the docker image not on the mac.

Here is what i remember so far:

  • start an ubuntu container
docker run --name u2 -i -t --cap-add SYS_ADMIN --device /dev/fuse ubuntu /bin/bash
  • install sshfs on the container
apt-cache update
apt-get install sshfs
  • create a Users directory on the container to emulate behavior of boot2docker
mkdir /Users/
sshfs username@machost:/Users/macUserName /Users -o idmap=user -o uid=$(id -u) -o gid=$(id -g) 

Good Luck

agebrock avatar Nov 28 '15 00:11 agebrock