{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/20827","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/20827/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/20827/comments","events_url":"https://api.github.com/repos/docker/docker/issues/20827/events","html_url":"https://github.com/docker/docker/issues/20827","id":137646190,"number":20827,"title":"Docker daemon fails to start even when touching subuid and subgid files with userns-remap flag ","user":{"login":"zunayed","id":554789,"avatar_url":"https://avatars.githubusercontent.com/u/554789?v=3","gravatar_id":"","url":"https://api.github.com/users/zunayed","html_url":"https://github.com/zunayed","followers_url":"https://api.github.com/users/zunayed/followers","following_url":"https://api.github.com/users/zunayed/following{/other_user}","gists_url":"https://api.github.com/users/zunayed/gists{/gist_id}","starred_url":"https://api.github.com/users/zunayed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zunayed/subscriptions","organizations_url":"https://api.github.com/users/zunayed/orgs","repos_url":"https://api.github.com/users/zunayed/repos","events_url":"https://api.github.com/users/zunayed/events{/privacy}","received_events_url":"https://api.github.com/users/zunayed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-01T18:07:42Z","updated_at":"2016-03-01T18:07:42Z","closed_at":null,"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\nOutput of `docker version`:\r\n\r\n```\r\n[root@localhost vagrant]# docker version\r\nClient:\r\n Version:      1.10.2\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   c3959b1\r\n Built:        Mon Feb 22 16:28:37 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n\r\nOutput of `docker info`:\r\n\r\n```\r\n[root@localhost vagrant]# docker info\r\nContainers: 18\r\n Running: 0\r\n Paused: 0\r\n Stopped: 18\r\nImages: 79\r\nServer Version: 1.10.2\r\nStorage Driver: devicemapper\r\n Pool Name: docker-253:0-33625769-pool\r\n Pool Blocksize: 65.54 kB\r\n Base Device Size: 10.74 GB\r\n Backing Filesystem: xfs\r\n Data file: /dev/loop0\r\n Metadata file: /dev/loop1\r\n Data Space Used: 1.842 GB\r\n Data Space Total: 107.4 GB\r\n Data Space Available: 41.4 GB\r\n Metadata Space Used: 6.582 MB\r\n Metadata Space Total: 2.147 GB\r\n Metadata Space Available: 2.141 GB\r\n Udev Sync Supported: true\r\n Deferred Removal Enabled: false\r\n Deferred Deletion Enabled: false\r\n Deferred Deleted Device Count: 0\r\n Data loop file: /var/lib/docker/devicemapper/devicemapper/data\r\n WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.\r\n Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata\r\n Library Version: 1.02.109 (2015-09-22)\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nPlugins:\r\n Volume: local\r\n Network: host bridge null\r\nKernel Version: 4.2.3-300.fc23.x86_64\r\nOperating System: Fedora 23 (Twenty Three)\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 1.955 GiB\r\nName: localhost.localdomain\r\nID: WF24:UCMM:U523:54ZH:KX2J:ROC2:GGFE:L46S:YKJI:PUKJ:SV5I:I75X\r\n```\r\n\r\nProvide additional environment details (AWS, VirtualBox, physical, etc.):\r\nRunning vagrant vm with image \"box-cutter/fedora23\" on a osx 10.11.3 (macbook pro)\r\n\r\n\r\n\r\nList the steps to reproduce the issue:\r\n1. touched subuid and subgid files\r\n2. set --userns-remap=default\r\n3. run docker daemon \r\n\r\n\r\nDescribe the results you received:\r\n```\r\n[vagrant@localhost ~]$ sudo touch /etc/subuid\r\n[vagrant@localhost ~]$ sudo docker daemon --userns-remap=default\r\nINFO[0000] User namespaces: ID ranges will be mapped to subuid/subgid ranges of: dockremap:dockremap\r\nFATA[0000] Error starting daemon: Can't create ID mappings: open /etc/subgid: no such file or directory\r\n[vagrant@localhost ~]$ sudo touch /etc/subgid\r\n[vagrant@localhost ~]$ sudo docker daemon --userns-remap=default\r\nINFO[0000] User namespaces: ID ranges will be mapped to subuid/subgid ranges of: dockremap:dockremap\r\nFATA[0000] Error starting daemon: Can't create ID mappings: No subuid ranges found for user \"dockremap\"\r\n```\r\nDescribe the results you expected:\r\nthe daemon to start with normally\r\n"}}