{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/15631","labels_url":"https://api.github.com/repos/docker/docker/issues/15631/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/15631/comments","events_url":"https://api.github.com/repos/docker/docker/issues/15631/events","html_url":"https://github.com/docker/docker/issues/15631","id":101416807,"number":15631,"title":"Unable to change user id inside Docker image","user":{"login":"fjammes","id":290045,"avatar_url":"https://avatars.githubusercontent.com/u/290045?v=3","gravatar_id":"","url":"https://api.github.com/users/fjammes","html_url":"https://github.com/fjammes","followers_url":"https://api.github.com/users/fjammes/followers","following_url":"https://api.github.com/users/fjammes/following{/other_user}","gists_url":"https://api.github.com/users/fjammes/gists{/gist_id}","starred_url":"https://api.github.com/users/fjammes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjammes/subscriptions","organizations_url":"https://api.github.com/users/fjammes/orgs","repos_url":"https://api.github.com/users/fjammes/repos","events_url":"https://api.github.com/users/fjammes/events{/privacy}","received_events_url":"https://api.github.com/users/fjammes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-17T13:06:15Z","updated_at":"2015-08-17T13:06:15Z","closed_at":null,"body":"Dockerfile is:\r\n```bash\r\n1 qserv@clrinfopc04:~/src/qserv/admin/tools/docker (u/fjammes/DM-3199)$ cat test/Dockerfile \r\nFROM centos:centos7\r\nMAINTAINER Fabrice Jammes <fabrice.jammes@in2p3.fr>\r\n\r\nRUN adduser dev\r\nRUN usermod -u 1004 dev\r\n```\r\nImage creation command is:\r\n```bash\r\nqserv@clrinfopc04:~/src/qserv/admin/tools/docker (u/fjammes/DM-3199)$ docker build --tag=\"fjammes/qserv:test\" test\r\nSending build context to Docker daemon 12.29 kB\r\nSending build context to Docker daemon \r\nStep 0 : FROM centos:centos7\r\n ---> 7322fbe74aa5\r\nStep 1 : MAINTAINER Fabrice Jammes <fabrice.jammes@in2p3.fr>\r\n ---> Using cache\r\n ---> f063582765db\r\nStep 2 : RUN adduser dev\r\n ---> Running in e4b8669cdb01\r\n ---> 5b8c5f9e9404\r\nRemoving intermediate container e4b8669cdb01\r\nStep 3 : RUN usermod -u 1004 dev\r\n ---> Running in 96d99c800314\r\n ---> cd2c3f9a362e\r\nRemoving intermediate container 96d99c800314\r\nSuccessfully built cd2c3f9a362e\r\n```\r\n\r\nError is:\r\n```bash\r\nqserv@clrinfopc04:~/src/qserv/admin/tools/docker (u/fjammes/DM-3199)$ docker run -it --rm  fjammes/qserv:test bash\r\n[root@1d4b99293106 /]# su - dev\r\n[dev@1d4b99293106 ~]$ ls -rtla\r\ntotal 20\r\n-rw-r--r-- 1 dev  dev   231 Mar  5 22:06 .bashrc\r\n-rw-r--r-- 1 dev  dev   193 Mar  5 22:06 .bash_profile\r\n-rw-r--r-- 1 dev  dev    18 Mar  5 22:06 .bash_logout\r\ndrwxr-xr-x 4 root root 4096 Aug 17 13:00 ..\r\ndrwx------ 2 dev  dev  4096 Aug 17 13:00 .\r\n[dev@1d4b99293106 ~]$ touch foo\r\ntouch: cannot touch 'foo': Permission denied\r\n```\r\nWhy can't I created this file here?\r\n\r\nHere's my docker version:\r\nqserv@clrinfopc04:~/src/qserv/admin/tools/docker (u/fjammes/DM-3199)$ docker --version\r\nDocker version 1.6.2, build 7c8fca2"}}