this project demonstrates that file system events are not propigating to the containers in Docker for Mac when using Swarm Mode.
- docker for mac
- version 1.12
- a strong stomach for disappointment
The following snippet runs a container with the docker run command, binding
the local watch directory to /opt/watch in the container then starting
inotifywait on it. This works.
cd docker_run
./run.shThis snippet runs a the same image with the docker service create command,
but uses the --bind flags instead of --volume. This does not work.
cd docker_swarm
./run.sh