winnfsd / vagrant-winnfsd

Manage and adds support for NFS for Vagrant on Windows.
Other
567 stars 62 forks source link

Problems using docker container #34

Closed janschultecom closed 9 years ago

janschultecom commented 9 years ago

Hi,

I had some trouble getting things work using CoreOs and Docker containers, when mounting a docker path to a coreos path which itself was mounted to the winnfs synced folder. I continuously ran into stale file handle issues. However, if I use tcp instead of udp it works fine.

Cheers

Jan

yannschepens commented 9 years ago

Hi,

I use docker too with a debian machine (my VM), I use a volume container with is links with my Vagrant synced folder, and i haven't got problem (currently).

Cheers,

Yann

2015-01-16 9:44 GMT+01:00 Jan Schulte notifications@github.com:

Hi,

I had some trouble getting things work using CoreOs and Docker containers, when mounting a docker path to a coreos path which itself was mounted to the winnfs synced folder. I continuously ran into stale file handle issues. However, if I use tcp instead of udp it works fine.

Cheers

Jan

— Reply to this email directly or view it on GitHub https://github.com/GM-Alex/vagrant-winnfsd/issues/34.

Yann Schepens

yann.schepens@gmail.com

janschultecom commented 9 years ago

Strange, might be a problem of the limited capabilities of CoreOS then...

GM-Alex commented 9 years ago

@janschultecom Are you using Panamax?

janschultecom commented 9 years ago

Nope, didn't know that one. Looks very interesting though...

GM-Alex commented 9 years ago

The problem is CoreOS itself there is some stuff missing. It's the same for the boot2docker vagrant image.

analytik commented 8 years ago

Hi. We're using CoreOS, and we're having this problem more often since we upgraded to vagrant-winnfsd 1.1.0 (from 1.0.10 I think). Halt&up helps.

I'm not sure if this is CoreOS problem, since boot2docker doesn't use CoreOS.

langdead commented 8 years ago

I also came across such issue(win10 + vagrant + coreos + container in coreos).

core@core-01 ~ $ rm -rf /proj/gogs/gogs
rm: cannot remove '/proj/gogs/gogs/data': Stale file handle
rm: cannot remove '/proj/gogs/gogs/log': Stale file handle
core@core-01 ~ $ uname -a
Linux core-01 4.6.3-coreos #2 SMP Tue Jul 12 18:22:26 UTC 2016 x86_64 Intel(R) Core(TM) i7-4712HQ CPU @ 2.30GHz GenuineIntel GNU/Linux
core@core-01 ~ $

Now the folder itself can't be removed in either coreos or windows after vagrant destroy the coreos...

langdead commented 8 years ago

seemed rd /Q /S folder_name in Windows Cmd(as Administrator) can rm the broken folder.

marcharding commented 8 years ago

Can you provide me with a complete test case (Vagrantfile etc.) so i can reproduce this?

langdead commented 8 years ago

Hi @marcharding , sorry for replying late!

With follow Vagrantfile that's from https://github.com/coreos/coreos-vagrant/, and adapted according to winnfsd instruction.

mkdir /proj/gogs
docker pull gogs/gogs
docker run --name=gogs -p 10022:22 -p 10080:3000 -v /proj/gogs:/data gogs/gogs

Now you should be not able to rm the folder "/proj/gogs"

Thx very much for your follow up! And nice weekend!

Regards Langdead

Vagrantfile.zip

marcharding commented 8 years ago

Hey, i could remove the folder without problems...