{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/17240","labels_url":"https://api.github.com/repos/docker/docker/issues/17240/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/17240/comments","events_url":"https://api.github.com/repos/docker/docker/issues/17240/events","html_url":"https://github.com/docker/docker/issues/17240","id":112603792,"number":17240,"title":"Mounts using the :z or :Z mode don't create the folder on the Docker host","user":{"login":"alvaroaleman","id":6496100,"avatar_url":"https://avatars.githubusercontent.com/u/6496100?v=3","gravatar_id":"","url":"https://api.github.com/users/alvaroaleman","html_url":"https://github.com/alvaroaleman","followers_url":"https://api.github.com/users/alvaroaleman/followers","following_url":"https://api.github.com/users/alvaroaleman/following{/other_user}","gists_url":"https://api.github.com/users/alvaroaleman/gists{/gist_id}","starred_url":"https://api.github.com/users/alvaroaleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvaroaleman/subscriptions","organizations_url":"https://api.github.com/users/alvaroaleman/orgs","repos_url":"https://api.github.com/users/alvaroaleman/repos","events_url":"https://api.github.com/users/alvaroaleman/events{/privacy}","received_events_url":"https://api.github.com/users/alvaroaleman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-10-21T14:35:23Z","updated_at":"2015-10-22T12:50:05Z","closed_at":null,"body":"As disovered in https://github.com/ansible/ansible-modules-core/pull/2312:\r\n\r\n``docker run -it -v /nonexistant:/tmp:Z debian:jessie bash``\r\n\r\ncauses a \r\n\r\n``Error response from daemon: no such file or directory``.\r\n\r\nThis is different from a mount using ``:ro`` or ``:rw`` mode which both cause the folder on the host to be created."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/150210126","html_url":"https://github.com/docker/docker/issues/17240#issuecomment-150210126","issue_url":"https://api.github.com/repos/docker/docker/issues/17240","id":150210126,"user":{"login":"rhatdan","id":2000835,"avatar_url":"https://avatars.githubusercontent.com/u/2000835?v=3","gravatar_id":"","url":"https://api.github.com/users/rhatdan","html_url":"https://github.com/rhatdan","followers_url":"https://api.github.com/users/rhatdan/followers","following_url":"https://api.github.com/users/rhatdan/following{/other_user}","gists_url":"https://api.github.com/users/rhatdan/gists{/gist_id}","starred_url":"https://api.github.com/users/rhatdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhatdan/subscriptions","organizations_url":"https://api.github.com/users/rhatdan/orgs","repos_url":"https://api.github.com/users/rhatdan/repos","events_url":"https://api.github.com/users/rhatdan/events{/privacy}","received_events_url":"https://api.github.com/users/rhatdan/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T12:50:05Z","updated_at":"2015-10-22T12:50:05Z","body":"There would be no difference between the versions.  But from above, the SELinux behaviour is correct going forward.\r\n\r\nBTW doing something like `-v /etc/passwd:/etc/passwd:Z` is a BAD idea.  Since it will break all confined domains on your system that attempt to read /etc/passwd.\r\n\r\nI guess we can close this issue."}}