{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/6029","repository_url":"https://api.github.com/repos/docker/compose","labels_url":"https://api.github.com/repos/docker/compose/issues/6029/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/6029/comments","events_url":"https://api.github.com/repos/docker/compose/issues/6029/events","html_url":"https://github.com/docker/compose/issues/6029","id":334336934,"node_id":"MDU6SXNzdWUzMzQzMzY5MzQ=","number":6029,"title":"File system events are not propagated to services in bind volumes","user":{"login":"xdmiodz","id":563026,"node_id":"MDQ6VXNlcjU2MzAyNg==","avatar_url":"https://avatars1.githubusercontent.com/u/563026?v=4","gravatar_id":"","url":"https://api.github.com/users/xdmiodz","html_url":"https://github.com/xdmiodz","followers_url":"https://api.github.com/users/xdmiodz/followers","following_url":"https://api.github.com/users/xdmiodz/following{/other_user}","gists_url":"https://api.github.com/users/xdmiodz/gists{/gist_id}","starred_url":"https://api.github.com/users/xdmiodz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xdmiodz/subscriptions","organizations_url":"https://api.github.com/users/xdmiodz/orgs","repos_url":"https://api.github.com/users/xdmiodz/repos","events_url":"https://api.github.com/users/xdmiodz/events{/privacy}","received_events_url":"https://api.github.com/users/xdmiodz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-21T04:48:37Z","updated_at":"2018-06-28T02:57:43Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nWelcome to the docker-compose issue tracker! Before creating an issue, please heed the following:\r\n\r\n1. This tracker should only be used to report bugs and request features / enhancements to docker-compose\r\n    - For questions and general support, use https://forums.docker.com\r\n    - For documentation issues, use https://github.com/docker/docker.github.io\r\n    - For issues with the `docker stack` commands and the version 3 of the Compose file, use\r\n      https://github.com/docker/cli\r\n2. Use the search function before creating a new issue. Duplicates will be closed and directed to\r\n   the original discussion.\r\n3. When making a bug report, make sure you provide all required information. The easier it is for\r\n   maintainers to reproduce, the faster it'll be fixed.\r\n-->\r\n\r\n## volume binds don't propagate fs events to containers\r\n\r\n## Context information (for bug reports)\r\n\r\n```\r\ndocker-compose version 1.21.2, build a133471\r\ndocker-py version: 3.3.0\r\nCPython version: 3.6.5\r\nOpenSSL version: OpenSSL 1.0.1t  3 May 2016\r\n```\r\n\r\n```\r\nClient:\r\n Version:      18.03.1-ce\r\n API version:  1.37\r\n Go version:   go1.9.5\r\n Git commit:   9ee9f40\r\n Built:        Thu Apr 26 07:17:20 2018\r\n OS/Arch:      linux/amd64\r\n Experimental: false\r\n Orchestrator: swarm\r\n\r\nServer:\r\n Engine:\r\n  Version:      18.03.1-ce\r\n  API version:  1.37 (minimum version 1.12)\r\n  Go version:   go1.9.5\r\n  Git commit:   9ee9f40\r\n  Built:        Thu Apr 26 07:15:30 2018\r\n  OS/Arch:      linux/amd64\r\n  Experimental: false\r\n```\r\n\r\n```\r\n$ docker info\r\nContainers: 8\r\n Running: 8\r\n Paused: 0\r\n Stopped: 0\r\nImages: 33\r\nServer Version: 18.03.1-ce\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 110\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host macvlan null overlay\r\n Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nInit Binary: docker-init\r\ncontainerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88\r\nrunc version: 4fc53a81fb7c994640722ac585fa9ca548971871\r\ninit version: 949e6fa\r\nSecurity Options:\r\n apparmor\r\n seccomp\r\n  Profile: default\r\nKernel Version: 4.4.0-1061-aws\r\nOperating System: Ubuntu 16.04.4 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 16\r\nTotal Memory: 29.44GiB\r\nName: ip-172-31-1-37\r\nID: 2XCS:TSOW:6V4K:AJSG:TTMV:C436:LVWJ:OWKH:NTRF:4XPA:L75K:A7RE\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nUsername: xdmiodz\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\nExperimental: false\r\nInsecure Registries:\r\n 127.0.0.0/8\r\nLive Restore Enabled: false\r\n\r\nWARNING: No swap limit support\r\n```\r\n\r\n\r\n## Steps to reproduce the issue\r\n\r\nUse the following docker file for demo image\r\n```\r\ncat >> Dockerfile_python << EOF\r\nFROM python:3.6\r\nRUN pip install watchdog\r\nEOF\r\n```\r\n\r\nbuild it \r\n\r\n```\r\ndocker build -f Dockerfile_python . -t fsdemo:3.6\r\n```\r\n\r\nUse this compose for reproduction:\r\n\r\n```\r\ncat >> fsdemo.yaml << EOF\r\nversion: '3'\r\nservices:\r\n  fsdemo:\r\n    image: fsdemo:3.6\r\n    command: watchmedo log -R /fsdemo\r\n    volumes:\r\n      - $HOME/fsdemo:/fsdemo\r\n\r\nEOF\r\n```\r\n\r\nMake the fsdemo directory:\r\n```\r\nmkdir -p $HOME/fsdemo\r\n```\r\n\r\nUp the service:\r\n\r\n```\r\ndocker-compose -f fsdemo.yaml up fsdemo\r\n```\r\n\r\n### Expected result\r\n\r\nLog in fsdemo service shows that file system events on creation of files are detected\r\n\r\n## Additional information\r\n\r\nIf you `run` the service, instead `up`, file system events are propagated as expected:\r\n\r\n```\r\ndocker-compose -f fsdemo.yaml run  fsdemo\r\n```\r\n\r\n```echo '1' >> ~/fsdemo/me```\r\n\r\nThe resulting log is:\r\n\r\n```\r\non_modified(self=<watchdog.tricks.LoggerTrick object at 0x7fc4625cc198>, event=<FileModifiedEvent: src_path='/fsdemo/me'>)\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/400895235","html_url":"https://github.com/docker/compose/issues/6029#issuecomment-400895235","issue_url":"https://api.github.com/repos/docker/compose/issues/6029","id":400895235,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDg5NTIzNQ==","user":{"login":"xdmiodz","id":563026,"node_id":"MDQ6VXNlcjU2MzAyNg==","avatar_url":"https://avatars1.githubusercontent.com/u/563026?v=4","gravatar_id":"","url":"https://api.github.com/users/xdmiodz","html_url":"https://github.com/xdmiodz","followers_url":"https://api.github.com/users/xdmiodz/followers","following_url":"https://api.github.com/users/xdmiodz/following{/other_user}","gists_url":"https://api.github.com/users/xdmiodz/gists{/gist_id}","starred_url":"https://api.github.com/users/xdmiodz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xdmiodz/subscriptions","organizations_url":"https://api.github.com/users/xdmiodz/orgs","repos_url":"https://api.github.com/users/xdmiodz/repos","events_url":"https://api.github.com/users/xdmiodz/events{/privacy}","received_events_url":"https://api.github.com/users/xdmiodz/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T02:57:43Z","updated_at":"2018-06-28T02:57:43Z","author_association":"NONE","body":"updated the issue with `docker info`"}}
{"actor":{"display_login":"xdmiodz"}}