{"action":"created","issue":{"url":"https://api.github.com/repos/moby/moby/issues/36472","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/36472/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/36472/comments","events_url":"https://api.github.com/repos/moby/moby/issues/36472/events","html_url":"https://github.com/moby/moby/issues/36472","id":301883262,"node_id":"MDU6SXNzdWUzMDE4ODMyNjI=","number":36472,"title":"--userns-remap causes shared mounts to also become slaves","user":{"login":"gvessere","id":1480585,"node_id":"MDQ6VXNlcjE0ODA1ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/1480585?v=4","gravatar_id":"","url":"https://api.github.com/users/gvessere","html_url":"https://github.com/gvessere","followers_url":"https://api.github.com/users/gvessere/followers","following_url":"https://api.github.com/users/gvessere/following{/other_user}","gists_url":"https://api.github.com/users/gvessere/gists{/gist_id}","starred_url":"https://api.github.com/users/gvessere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvessere/subscriptions","organizations_url":"https://api.github.com/users/gvessere/orgs","repos_url":"https://api.github.com/users/gvessere/repos","events_url":"https://api.github.com/users/gvessere/events{/privacy}","received_events_url":"https://api.github.com/users/gvessere/received_events","type":"User","site_admin":false},"labels":[{"id":476900795,"node_id":"MDU6TGFiZWw0NzY5MDA3OTU=","url":"https://api.github.com/repos/moby/moby/labels/area/security/userns","name":"area/security/userns","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-03-02T19:45:34Z","updated_at":"2019-04-05T19:03:24Z","closed_at":null,"author_association":"NONE","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/moby/moby/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nGENERAL SUPPORT INFORMATION\r\n---------------------------------------------------\r\n\r\nThe GitHub issue tracker is for bug reports and feature requests.\r\nGeneral support for **docker** can be found at the following locations:\r\n\r\n- Docker Support Forums - https://forums.docker.com\r\n- Slack - community.docker.com #general channel\r\n- Post a question on StackOverflow, using the Docker tag\r\n\r\nGeneral support for **moby** can be found at the following locations:\r\n\r\n- Moby Project Forums - https://forums.mobyproject.org\r\n- Slack - community.docker.com #moby-project channel\r\n- Post a question on StackOverflow, using the Moby tag\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\nthe --userns-remap option only mounts shared mounts using the slave option. if the daemon is started without the userns-remap option, the container mountpoint is not a slave\r\n\r\n\r\n**Steps to reproduce the issue:**\r\n1. mkdir hostmount\r\n2. sudo mount --bind hostmount hostmount (edited 3/21)\r\n3. sudo mount --make-shared hostmount (edited 3/21)\r\n4. docker run -it --mount type=bind,source=hostmount,target=containermount,bind-propagation=shared ubuntu bash\r\n5. (inside container) findmnt -o PROPAGATION,TARGET \r\n\r\n**Describe the results you received:**\r\n...\r\nshared,**slave** |-/containermount\r\n...\r\n\r\n**Describe the results you expected:**\r\n...\r\nshared |-/containermount\r\n...\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:\t18.02.0-ce\r\n API version:\t1.36\r\n Go version:\tgo1.9.3\r\n Git commit:\tfc4de44\r\n Built:\tWed Feb  7 21:16:33 2018\r\n OS/Arch:\tlinux/amd64\r\n Experimental:\tfalse\r\n Orchestrator:\tswarm\r\n\r\nServer:\r\n Engine:\r\n  Version:\t18.02.0-ce\r\n  API version:\t1.36 (minimum version 1.12)\r\n  Go version:\tgo1.9.3\r\n  Git commit:\tfc4de44\r\n  Built:\tWed Feb  7 21:15:05 2018\r\n  OS/Arch:\tlinux/amd64\r\n  Experimental:\tfalse\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 50\r\n Running: 0\r\n Paused: 0\r\n Stopped: 50\r\nImages: 2\r\nServer Version: 18.02.0-ce\r\nStorage Driver: overlay2\r\n Backing Filesystem: extfs\r\n Supports d_type: true\r\n Native Overlay Diff: 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: 9b55aab90508bd389d7654c4baf173a981477d55\r\nrunc version: 9f9c96235cc97674e935002fc3d78361b696a69e\r\ninit version: 949e6fa\r\nSecurity Options:\r\n apparmor\r\n seccomp\r\n  Profile: default\r\n userns\r\nKernel Version: 4.4.0-1052-aws\r\nOperating System: Ubuntu 16.04.3 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 36\r\nTotal Memory: 58.97GiB\r\nName: ip-172-30-91-26\r\nID: BXCO:ZVDX:QSQR:5V6W:SQSW:SDMU:RXVC:KZNN:CGMZ:W3F5:LDHY:MDMS\r\nDocker Root Dir: /var/lib/docker/231072.231072\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nUsername: basespace\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\noutput of uname -a:\r\n\r\nLinux ip-172-30-91-26 4.4.0-1052-aws #61-Ubuntu SMP Mon Feb 12 23:05:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n"},"comment":{"url":"https://api.github.com/repos/moby/moby/issues/comments/480388275","html_url":"https://github.com/moby/moby/issues/36472#issuecomment-480388275","issue_url":"https://api.github.com/repos/moby/moby/issues/36472","id":480388275,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MDM4ODI3NQ==","user":{"login":"fphammerle","id":8507803,"node_id":"MDQ6VXNlcjg1MDc4MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/8507803?v=4","gravatar_id":"","url":"https://api.github.com/users/fphammerle","html_url":"https://github.com/fphammerle","followers_url":"https://api.github.com/users/fphammerle/followers","following_url":"https://api.github.com/users/fphammerle/following{/other_user}","gists_url":"https://api.github.com/users/fphammerle/gists{/gist_id}","starred_url":"https://api.github.com/users/fphammerle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fphammerle/subscriptions","organizations_url":"https://api.github.com/users/fphammerle/orgs","repos_url":"https://api.github.com/users/fphammerle/repos","events_url":"https://api.github.com/users/fphammerle/events{/privacy}","received_events_url":"https://api.github.com/users/fphammerle/received_events","type":"User","site_admin":false},"created_at":"2019-04-05T19:03:24Z","updated_at":"2019-04-05T19:03:24Z","author_association":"NONE","body":"```sh\r\n$ docker run --rm -v /tmp/outside:/outside:shared --userns host debian:stretch findmnt -o TARGET,PROPAGATION /outside\r\nTARGET   PROPAGATION\r\n/outside shared\r\n$ docker run --rm -v /tmp/outside:/outside:shared debian:stretch findmnt -o TARGET,PROPAGATION /outside\r\nTARGET   PROPAGATION\r\n/outside shared,slave\r\n```\r\n\r\nIs this behavior intended?"}}
{"actor":{"display_login":"fphammerle"}}