{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/libcontainer/issues/466","labels_url":"https://api.github.com/repos/docker/libcontainer/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/docker/libcontainer/issues/466/comments","events_url":"https://api.github.com/repos/docker/libcontainer/issues/466/events","html_url":"https://github.com/docker/libcontainer/issues/466","id":63336655,"number":466,"title":"Cannot create Shared bind mounts in docker","user":{"login":"wlan0","id":1050521,"avatar_url":"https://avatars.githubusercontent.com/u/1050521?v=3","gravatar_id":"","url":"https://api.github.com/users/wlan0","html_url":"https://github.com/wlan0","followers_url":"https://api.github.com/users/wlan0/followers","following_url":"https://api.github.com/users/wlan0/following{/other_user}","gists_url":"https://api.github.com/users/wlan0/gists{/gist_id}","starred_url":"https://api.github.com/users/wlan0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlan0/subscriptions","organizations_url":"https://api.github.com/users/wlan0/orgs","repos_url":"https://api.github.com/users/wlan0/repos","events_url":"https://api.github.com/users/wlan0/events{/privacy}","received_events_url":"https://api.github.com/users/wlan0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-21T00:23:34Z","updated_at":"2015-03-21T01:54:38Z","closed_at":"2015-03-21T01:54:38Z","body":"I tried to create shared bind mounts in docker. I did that by setting the MS_SHARED flag in the mount syscall. \r\n\r\ni added this line after (tried before as well and various other variants) the bind mount ( https://github.com/docker/libcontainer/blob/master/rootfs_linux.go#L111 )\r\n\r\n```\r\n                 if m.Flags&syscall.MS_SHARED != 0 {\r\n                         if err := syscall.Mount(\"\", dest, \"none\", uintptr(syscall.MS_REC|syscall.MS_SHARED), \"\"); err != nil {\r\n                                 return err\r\n                         }\r\n                 }\r\n```\r\n\r\nBut it doesn't create shared mounts. I'm testing this on ubuntu: 14.04. Is there a fundamental design decision that prevents shared mounts  that i'm missing?"}}