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

WSL docker volumes - file change not working #2672

Closed
efortes opened this issue Nov 15, 2017 · 1 comment
Closed

WSL docker volumes - file change not working #2672

efortes opened this issue Nov 15, 2017 · 1 comment

Comments

@efortes
Copy link

efortes commented Nov 15, 2017

Windows build number: Microsoft Windows [Version 10.0.16299.19]

I use docker on WSL and use the client to connect to the windows 10 docker (export DOCKER_HOST='tcp://0.0.0.0:2375').

On native ubuntu i'm able to run an application inside docker and mount my nodejs project to the docker container as a volume. When I change a file on my host computer the docker container gets a file update notification and the files can be refreshed with tools like nodemon ( https://www.npmjs.com/package/nodemon )

When I use WSL docker is not aware of the file changes. How can this be fixed?

@jstarks
Copy link
Member

jstarks commented Nov 15, 2017

I believe this is an issue with Docker for Windows, not with WSL. Docker for Windows does not support filesystem notifications when running Linux containers; this is true whether you are using WSL or regular Windows as the Docker client.

See docker/for-win#56.

@jstarks jstarks closed this as completed Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants