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

File watching on mounted volumes doesn't work #362

Closed
wclr opened this issue Dec 28, 2016 · 7 comments
Closed

File watching on mounted volumes doesn't work #362

wclr opened this issue Dec 28, 2016 · 7 comments

Comments

@wclr
Copy link

wclr commented Dec 28, 2016

Expected behavior

For example these popular packages:
nodemon
node-dev
webpack

should be able to watch file changes on mounted volumes.

Actual behavior

nodemon (works too only using legacy flag)
node-dev (works only with legacy --poll option)
webpack (works only with poll option)

@friism
Copy link

friism commented Dec 29, 2016

Thanks for reporting, this is a known limitation: https://docs.docker.com/docker-for-windows/troubleshoot/#inotify-on-shared-drives-does-not-work

@friism friism closed this as completed Dec 29, 2016
@wclr
Copy link
Author

wclr commented Dec 29, 2016

Ok, it seems that tsc works, not sure why it seem to me that it doesn't.

@nhooey
Copy link

nhooey commented Mar 13, 2018

It looks like inotify-proxy is a workaround to this problem.

@elonderin
Copy link

elonderin commented Mar 19, 2020

update:

TLDR

  • still not working as of 2.2.0.3
  • workaround is: use install docker-windows-volume-watcher

long story

the link to the docker docs is dead

Thanks for reporting, this is a known limitation: https://docs.docker.com/docker-for-windows/troubleshoot/#inotify-on-shared-drives-does-not-work

i'd wish, i had seen that limitation beforehand :sigh:

@elonderin
Copy link

elonderin commented Mar 21, 2020

update

seems to be fixed in 2.2.0.4

@trajano
Copy link

trajano commented May 3, 2020

Seems to be broken in 2.2.0.5

I tied

  vue:
    image: node:lts
    networks:
      - intranet
    volumes:
      - /d/p/spring-cloud-demo/vue-app:/work
    command: >
      bash -c "cd /work
      && npm run serve"

Then tried changing a file and does not work.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants