{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/783","labels_url":"https://api.github.com/repos/docker/docker/issues/783/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/783/comments","events_url":"https://api.github.com/repos/docker/docker/issues/783/events","html_url":"https://github.com/docker/docker/issues/783","id":15033974,"number":783,"title":"unexpected file permission error in container","user":{"login":"astraw","id":30176,"avatar_url":"https://avatars.githubusercontent.com/u/30176?v=3","gravatar_id":"","url":"https://api.github.com/users/astraw","html_url":"https://github.com/astraw","followers_url":"https://api.github.com/users/astraw/followers","following_url":"https://api.github.com/users/astraw/following{/other_user}","gists_url":"https://api.github.com/users/astraw/gists{/gist_id}","starred_url":"https://api.github.com/users/astraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astraw/subscriptions","organizations_url":"https://api.github.com/users/astraw/orgs","repos_url":"https://api.github.com/users/astraw/repos","events_url":"https://api.github.com/users/astraw/events{/privacy}","received_events_url":"https://api.github.com/users/astraw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels//project/doc","name":"/project/doc","color":"207de5"},{"url":"https://api.github.com/repos/docker/docker/labels//system/aufs","name":"/system/aufs","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":46,"created_at":"2013-06-01T23:14:00Z","updated_at":"2015-02-27T01:06:06Z","closed_at":null,"body":"I've narrowed down a problem in an originally more involved setup. Consider the following Dockerfile:\r\n\r\n    # Dockerfile\r\n    FROM      ubuntu:12.10\r\n\r\n    RUN apt-get install -y puppetmaster sudo\r\n\r\n    RUN rm -rf /etc/puppet\r\n    ADD puppet-config /etc/puppet\r\n    RUN chown -R puppet.puppet /etc/puppet\r\n    RUN chmod 755 /etc/puppet\r\n\r\nWhen run with the following:\r\n\r\n    # make a dummy directory\r\n    mkdir puppet-config\r\n    echo \"hi\" >puppet-config/hello.txt\r\n\r\n    docker build -t dockbug .\r\n\r\n    echo \"note the directory is owned by puppet with full read/write/execute privs\"\r\n    docker run dockbug ls -al /etc/puppet\r\n\r\n    echo \"but we get a permission error here\"\r\n    docker run dockbug sudo -u puppet ls -al /etc/puppet\r\n\r\nI see an unexpected permission error in the final command. This is with Docker 0.3.4 from the PPA on Ubuntu 13.04 with kernel 3.8.0-19-generic. Interestingly, if I remove the like \"RUN rm -rf /etc/puppet\" from the Dockerfile, I no longer see the permission error.\r\n "},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/76311680","html_url":"https://github.com/docker/docker/issues/783#issuecomment-76311680","issue_url":"https://api.github.com/repos/docker/docker/issues/783","id":76311680,"user":{"login":"cpuguy83","id":799078,"avatar_url":"https://avatars.githubusercontent.com/u/799078?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuguy83","html_url":"https://github.com/cpuguy83","followers_url":"https://api.github.com/users/cpuguy83/followers","following_url":"https://api.github.com/users/cpuguy83/following{/other_user}","gists_url":"https://api.github.com/users/cpuguy83/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuguy83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuguy83/subscriptions","organizations_url":"https://api.github.com/users/cpuguy83/orgs","repos_url":"https://api.github.com/users/cpuguy83/repos","events_url":"https://api.github.com/users/cpuguy83/events{/privacy}","received_events_url":"https://api.github.com/users/cpuguy83/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T01:06:06Z","updated_at":"2015-02-27T01:06:06Z","body":"@jberkus This is specifically an issue with AUFS and not Docker itself."}}