{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/22828","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/22828/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/22828/comments","events_url":"https://api.github.com/repos/docker/docker/issues/22828/events","html_url":"https://github.com/docker/docker/issues/22828","id":155710592,"number":22828,"title":"bind mount on Ubuntu 16.04 fails (with compose and -v)","user":{"login":"tkaria","id":1047135,"avatar_url":"https://avatars.githubusercontent.com/u/1047135?v=3","gravatar_id":"","url":"https://api.github.com/users/tkaria","html_url":"https://github.com/tkaria","followers_url":"https://api.github.com/users/tkaria/followers","following_url":"https://api.github.com/users/tkaria/following{/other_user}","gists_url":"https://api.github.com/users/tkaria/gists{/gist_id}","starred_url":"https://api.github.com/users/tkaria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkaria/subscriptions","organizations_url":"https://api.github.com/users/tkaria/orgs","repos_url":"https://api.github.com/users/tkaria/repos","events_url":"https://api.github.com/users/tkaria/events{/privacy}","received_events_url":"https://api.github.com/users/tkaria/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":7,"created_at":"2016-05-19T11:05:22Z","updated_at":"2016-05-20T09:34:41Z","closed_at":"2016-05-19T13:51:22Z","body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\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:        Tue Apr 26 23:43:49 2016\r\n OS/Arch:      linux/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: 1\r\n Paused: 0\r\n Stopped: 0\r\nImages: 10\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: 15\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins: \r\n Volume: local\r\n Network: host bridge null\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.9 MiB\r\nName: dev\r\nID: T6FC:HWSK:RQYY:UCIV:ERUI:3YYK:YS5B:2UGD:W2SW:EOAL:2VIR:UW6R\r\nDocker Root Dir: /mnt/sda1/var/lib/docker\r\nDebug mode (client): false\r\nDebug mode (server): true\r\n File Descriptors: 18\r\n Goroutines: 43\r\n System Time: 2016-05-19T10:48:46.29872448Z\r\n EventsListeners: 0\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\n provider=virtualbox\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\nUbuntu 16.04\r\n`uname -a`\r\n`Linux timirbox 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux`\r\n\r\n\r\n**Steps to reproduce the issue:**\r\n1. Install docker according to these instructions https://docs.docker.com/engine/installation/linux/ubuntulinux/\r\n\r\n2. \r\nOn host\r\n```\r\nmkdir -p test\r\necho \"hello\" > test/test.txt\r\ndocker run -v $(pwd)/test:/test -it alpine sh\r\n```\r\n\r\n3. Look for file in the container\r\n`ls -l /test/`\r\n\r\n**Describe the results you received:**\r\n`test.txt` does not exist in the container\r\n```\r\n/ # ls -l /test\r\ntotal 0\r\n/ # \r\n```\r\nThe test directory is created but the file is not there. \r\n\r\n**Describe the results you expected:**\r\nWould expect to see the `test.txt` file in the `/test` directory inside the container\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\nHappens when specifying volumes in `docker-compose.yml` file as well. Maybe related to #2247?\r\n\r\nHere is the output of `docker inspect <name>`\r\n```\r\n[\r\n    {\r\n        \"Id\": \"a1503e7c313cea050e1aa78f7f2e4f3baa03eb4a105a72725563489bd4a74b64\",\r\n        \"Created\": \"2016-05-19T11:02:57.169176404Z\",\r\n        \"Path\": \"/bin/bash\",\r\n        \"Args\": [],\r\n        \"State\": {\r\n            \"Status\": \"running\",\r\n            \"Running\": true,\r\n            \"Paused\": false,\r\n            \"Restarting\": false,\r\n            \"OOMKilled\": false,\r\n            \"Dead\": false,\r\n            \"Pid\": 2711,\r\n            \"ExitCode\": 0,\r\n            \"Error\": \"\",\r\n            \"StartedAt\": \"2016-05-19T11:02:57.335914222Z\",\r\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\r\n        },\r\n        \"Image\": \"sha256:1d4bd39c6e098d7f6c527ff9bc1970d26e0e1fc8d4b7a7aa81dd03e73113447b\",\r\n        \"ResolvConfPath\": \"/mnt/sda1/var/lib/docker/containers/a1503e7c313cea050e1aa78f7f2e4f3baa03eb4a105a72725563489bd4a74b64/resolv.conf\",\r\n        \"HostnamePath\": \"/mnt/sda1/var/lib/docker/containers/a1503e7c313cea050e1aa78f7f2e4f3baa03eb4a105a72725563489bd4a74b64/hostname\",\r\n        \"HostsPath\": \"/mnt/sda1/var/lib/docker/containers/a1503e7c313cea050e1aa78f7f2e4f3baa03eb4a105a72725563489bd4a74b64/hosts\",\r\n        \"LogPath\": \"/mnt/sda1/var/lib/docker/containers/a1503e7c313cea050e1aa78f7f2e4f3baa03eb4a105a72725563489bd4a74b64/a1503e7c313cea050e1aa78f7f2e4f3baa03eb4a105a72725563489bd4a74b64-json.log\",\r\n        \"Name\": \"/boring_spence\",\r\n        \"RestartCount\": 0,\r\n        \"Driver\": \"aufs\",\r\n        \"MountLabel\": \"\",\r\n        \"ProcessLabel\": \"\",\r\n        \"AppArmorProfile\": \"\",\r\n        \"ExecIDs\": null,\r\n        \"HostConfig\": {\r\n            \"Binds\": [\r\n                \"/tmp/d:/test/\"\r\n            ],\r\n            \"ContainerIDFile\": \"\",\r\n            \"LogConfig\": {\r\n                \"Type\": \"json-file\",\r\n                \"Config\": {}\r\n            },\r\n            \"NetworkMode\": \"default\",\r\n            \"PortBindings\": {},\r\n            \"RestartPolicy\": {\r\n                \"Name\": \"no\",\r\n                \"MaximumRetryCount\": 0\r\n            },\r\n            \"AutoRemove\": false,\r\n            \"VolumeDriver\": \"\",\r\n            \"VolumesFrom\": null,\r\n            \"CapAdd\": null,\r\n            \"CapDrop\": null,\r\n            \"Dns\": [],\r\n            \"DnsOptions\": [],\r\n            \"DnsSearch\": [],\r\n            \"ExtraHosts\": null,\r\n            \"GroupAdd\": null,\r\n            \"IpcMode\": \"\",\r\n            \"Cgroup\": \"\",\r\n            \"Links\": null,\r\n            \"OomScoreAdj\": 0,\r\n            \"PidMode\": \"\",\r\n            \"Privileged\": false,\r\n            \"PublishAllPorts\": false,\r\n            \"ReadonlyRootfs\": false,\r\n            \"SecurityOpt\": null,\r\n            \"StorageOpt\": null,\r\n            \"UTSMode\": \"\",\r\n            \"UsernsMode\": \"\",\r\n            \"ShmSize\": 67108864,\r\n            \"ConsoleSize\": [\r\n                0,\r\n                0\r\n            ],\r\n            \"Isolation\": \"\",\r\n            \"CpuShares\": 0,\r\n            \"Memory\": 0,\r\n            \"CgroupParent\": \"\",\r\n            \"BlkioWeight\": 0,\r\n            \"BlkioWeightDevice\": null,\r\n            \"BlkioDeviceReadBps\": null,\r\n            \"BlkioDeviceWriteBps\": null,\r\n            \"BlkioDeviceReadIOps\": null,\r\n            \"BlkioDeviceWriteIOps\": null,\r\n            \"CpuPeriod\": 0,\r\n            \"CpuQuota\": 0,\r\n            \"CpusetCpus\": \"\",\r\n            \"CpusetMems\": \"\",\r\n            \"Devices\": [],\r\n            \"DiskQuota\": 0,\r\n            \"KernelMemory\": 0,\r\n            \"MemoryReservation\": 0,\r\n            \"MemorySwap\": 0,\r\n            \"MemorySwappiness\": -1,\r\n            \"OomKillDisable\": false,\r\n            \"PidsLimit\": 0,\r\n            \"Ulimits\": null,\r\n            \"CpuCount\": 0,\r\n            \"CpuPercent\": 0,\r\n            \"BlkioIOps\": 0,\r\n            \"BlkioBps\": 0,\r\n            \"SandboxSize\": 0\r\n        },\r\n        \"GraphDriver\": {\r\n            \"Name\": \"aufs\",\r\n            \"Data\": null\r\n        },\r\n        \"Mounts\": [\r\n            {\r\n                \"Source\": \"/tmp/d\",\r\n                \"Destination\": \"/test\",\r\n                \"Mode\": \"\",\r\n                \"RW\": true,\r\n                \"Propagation\": \"rprivate\"\r\n            },\r\n            {\r\n                \"Name\": \"2afa896b40fb641245e4df96b83fed1b612648b952379262cd8b8dc34a153224\",\r\n                \"Source\": \"/mnt/sda1/var/lib/docker/volumes/2afa896b40fb641245e4df96b83fed1b612648b952379262cd8b8dc34a153224/_data\",\r\n                \"Destination\": \"test\",\r\n                \"Driver\": \"local\",\r\n                \"Mode\": \"\",\r\n                \"RW\": true,\r\n                \"Propagation\": \"\"\r\n            }\r\n        ],\r\n        \"Config\": {\r\n            \"Hostname\": \"a1503e7c313c\",\r\n            \"Domainname\": \"\",\r\n            \"User\": \"\",\r\n            \"AttachStdin\": true,\r\n            \"AttachStdout\": true,\r\n            \"AttachStderr\": true,\r\n            \"Tty\": true,\r\n            \"OpenStdin\": true,\r\n            \"StdinOnce\": true,\r\n            \"Env\": [\r\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\r\n            ],\r\n            \"Cmd\": [\r\n                \"/bin/bash\"\r\n            ],\r\n            \"Image\": \"example\",\r\n            \"Volumes\": {\r\n                \"./test\": {}\r\n            },\r\n            \"WorkingDir\": \"\",\r\n            \"Entrypoint\": null,\r\n            \"OnBuild\": null,\r\n            \"Labels\": {}\r\n        },\r\n        \"NetworkSettings\": {\r\n            \"Bridge\": \"\",\r\n            \"SandboxID\": \"368a5cf5b402835814bdb3e7c46d454bbddd64a5eca7d0bf0215ecf61767c742\",\r\n            \"HairpinMode\": false,\r\n            \"LinkLocalIPv6Address\": \"\",\r\n            \"LinkLocalIPv6PrefixLen\": 0,\r\n            \"Ports\": {},\r\n            \"SandboxKey\": \"/var/run/docker/netns/368a5cf5b402\",\r\n            \"SecondaryIPAddresses\": null,\r\n            \"SecondaryIPv6Addresses\": null,\r\n            \"EndpointID\": \"fb8d95e9111b4b35976b1f1c888e85ea487878378df26f584fcef057abea179a\",\r\n            \"Gateway\": \"172.17.0.1\",\r\n            \"GlobalIPv6Address\": \"\",\r\n            \"GlobalIPv6PrefixLen\": 0,\r\n            \"IPAddress\": \"172.17.0.2\",\r\n            \"IPPrefixLen\": 16,\r\n            \"IPv6Gateway\": \"\",\r\n            \"MacAddress\": \"02:42:ac:11:00:02\",\r\n            \"Networks\": {\r\n                \"bridge\": {\r\n                    \"IPAMConfig\": null,\r\n                    \"Links\": null,\r\n                    \"Aliases\": null,\r\n                    \"NetworkID\": \"859410ac6d5011b6488117135cc326dd792b498f9100a2fc12287447bdf593c7\",\r\n                    \"EndpointID\": \"fb8d95e9111b4b35976b1f1c888e85ea487878378df26f584fcef057abea179a\",\r\n                    \"Gateway\": \"172.17.0.1\",\r\n                    \"IPAddress\": \"172.17.0.2\",\r\n                    \"IPPrefixLen\": 16,\r\n                    \"IPv6Gateway\": \"\",\r\n                    \"GlobalIPv6Address\": \"\",\r\n                    \"GlobalIPv6PrefixLen\": 0,\r\n                    \"MacAddress\": \"02:42:ac:11:00:02\"\r\n                }\r\n            }\r\n        }\r\n    }\r\n]\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/220560475","html_url":"https://github.com/docker/docker/issues/22828#issuecomment-220560475","issue_url":"https://api.github.com/repos/docker/docker/issues/22828","id":220560475,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T09:34:41Z","updated_at":"2016-05-20T09:34:41Z","body":"@tkaria are you running that on the same host? Or on OS X (and the daemon running in the boot2docker VM)? Note that by default, boot2docker (toolbox) only shares the `/Users` directory with the boot2docker VM, anything outside that directory is not shared with the VM, so the docker daemon will create an empty directory inside the VM, and bind-mount that in the container. See https://github.com/boot2docker/boot2docker/#virtualbox-guest-additions"}}
{"actor":{"display_login":"thaJeztah"}}