{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/22981","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/22981/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/22981/comments","events_url":"https://api.github.com/repos/docker/docker/issues/22981/events","html_url":"https://github.com/docker/docker/issues/22981","id":156780687,"number":22981,"title":"Empty folder in container when mounting a host directory","user":{"login":"aharpervc","id":441085,"avatar_url":"https://avatars.githubusercontent.com/u/441085?v=3","gravatar_id":"","url":"https://api.github.com/users/aharpervc","html_url":"https://github.com/aharpervc","followers_url":"https://api.github.com/users/aharpervc/followers","following_url":"https://api.github.com/users/aharpervc/following{/other_user}","gists_url":"https://api.github.com/users/aharpervc/gists{/gist_id}","starred_url":"https://api.github.com/users/aharpervc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aharpervc/subscriptions","organizations_url":"https://api.github.com/users/aharpervc/orgs","repos_url":"https://api.github.com/users/aharpervc/repos","events_url":"https://api.github.com/users/aharpervc/events{/privacy}","received_events_url":"https://api.github.com/users/aharpervc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/version/1.11","name":"version/1.11","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-05-25T15:32:14Z","updated_at":"2016-05-30T06:33:48Z","closed_at":"2016-05-25T16:56:43Z","body":"* [x] pretty sure there's no exact duplicate open issue, but https://github.com/docker/docker/issues/21535 may be related, not sure\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   5604cbe\r\n Built:        Wed Apr 27 00:34:20 2016\r\n OS/Arch:      windows/amd64\r\n\r\nServer:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   5604cbe\r\n Built:        Wed Apr 27 00:34:20 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 1\r\n Running: 0\r\n Paused: 0\r\n Stopped: 1\r\nImages: 1\r\nServer Version: 1.11.1\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 7\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge null host\r\nKernel Version: 4.4.8-boot2docker\r\nOperating System: Boot2Docker 1.11.1 (TCL 7.0); HEAD : 7954f54 - Wed Apr 27 16:36:45 UTC 2016\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 995 MiB\r\nName: test-machine\r\nID: KAM5:NASP:4VCU:TM2C:GFQR:QOZ3:S3CT:N4CM:FRNJ:HHGU:UNFO:2D4L\r\nDocker Root Dir: /mnt/sda1/var/lib/docker\r\nDebug mode (client): false\r\nDebug mode (server): true\r\n File Descriptors: 12\r\n Goroutines: 30\r\n System Time: 2016-05-25T15:29:28.874791658Z\r\n EventsListeners: 0\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\n provider=hyperv\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\n* docker environment set up with docker-machine using hyperv on windows 10\r\n\r\n**Steps to reproduce the issue:**\r\n\r\n[Here's my full command history](https://gist.github.com/aharpervc/daadb46a180fce535857a0fc17adb34a)\r\n\r\n1. create new folder, and create a new text file in the folder\r\n1. run `docker-machine create test-machine`\r\n1. run the commands to set up the environment\r\n1. run `docker run -i -t -v /c/users/aharper/workspace_test_docker_volume:/whatever ubuntu /bin/bash`\r\n\r\n\r\n**Describe the results you received:**\r\n\r\nI expected to see the host folder contents in `/whatever` in the container\r\n\r\n**Describe the results you expected:**\r\n\r\n`/whatever` exists in the container but is empty\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nSeems to always happen. No errors that I noticed. The mounting process seems to almost work since the folder itself shows up.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/222421162","html_url":"https://github.com/docker/docker/issues/22981#issuecomment-222421162","issue_url":"https://api.github.com/repos/docker/docker/issues/22981","id":222421162,"user":{"login":"habbes","id":8460169,"avatar_url":"https://avatars.githubusercontent.com/u/8460169?v=3","gravatar_id":"","url":"https://api.github.com/users/habbes","html_url":"https://github.com/habbes","followers_url":"https://api.github.com/users/habbes/followers","following_url":"https://api.github.com/users/habbes/following{/other_user}","gists_url":"https://api.github.com/users/habbes/gists{/gist_id}","starred_url":"https://api.github.com/users/habbes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/habbes/subscriptions","organizations_url":"https://api.github.com/users/habbes/orgs","repos_url":"https://api.github.com/users/habbes/repos","events_url":"https://api.github.com/users/habbes/events{/privacy}","received_events_url":"https://api.github.com/users/habbes/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T06:33:48Z","updated_at":"2016-05-30T06:33:48Z","body":"I have the same problem on my machine. The directory is created in the container but is empty, it is also properly listed in Mounts when I run `docker inspect`. However it worked fine last week when I tried it out a couple of times, don't know why it's not working today."}}
{"actor":{"display_login":"habbes"}}