Skip to content

Instantly share code, notes, and snippets.

@themightychris
Created February 8, 2019 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themightychris/8a016e655160598ede29b2cac7c04668 to your computer and use it in GitHub Desktop.
Save themightychris/8a016e655160598ede29b2cac7c04668 to your computer and use it in GitHub Desktop.
File watch notifications with Docker for Windows

A workaround is needed to make file change notification work under Docker for Windows:

# install Python via Chocolatey
choco install python

# install workaround Python script via PIP
pip install docker-windows-volume-watcher

# activate watch mode for all running Docker containers
docker-volume-watcher

For use with Habitat-powered containers/studios, the stat and chmod commands must be binlinked for docker-volume-watcher's tricks to work

hab pkg binlink core/coreutils -d /bin stat
hab pkg binlink core/coreutils -d /bin chmod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment