{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/15785","labels_url":"https://api.github.com/repos/docker/docker/issues/15785/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/15785/comments","events_url":"https://api.github.com/repos/docker/docker/issues/15785/events","html_url":"https://github.com/docker/docker/issues/15785","id":102729079,"number":15785,"title":"Permissions problem on Docker 1.8 when reading from stdin","user":{"login":"riklaunim","id":1822699,"avatar_url":"https://avatars.githubusercontent.com/u/1822699?v=3","gravatar_id":"","url":"https://api.github.com/users/riklaunim","html_url":"https://github.com/riklaunim","followers_url":"https://api.github.com/users/riklaunim/followers","following_url":"https://api.github.com/users/riklaunim/following{/other_user}","gists_url":"https://api.github.com/users/riklaunim/gists{/gist_id}","starred_url":"https://api.github.com/users/riklaunim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riklaunim/subscriptions","organizations_url":"https://api.github.com/users/riklaunim/orgs","repos_url":"https://api.github.com/users/riklaunim/repos","events_url":"https://api.github.com/users/riklaunim/events{/privacy}","received_events_url":"https://api.github.com/users/riklaunim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-08-24T07:46:04Z","updated_at":"2015-10-14T04:03:22Z","closed_at":null,"body":"In my build scripts I have a line like so:\r\n\r\n        tar c --mtime=2014-01-01 --exclude=__pycache__ --exclude=Dockerfile.template --mode=\"g=u,o=rX\" --owner=root --group=root . | docker build --tag=$IMAGE_NAME:$BUILD_NUMBER -\r\n\r\nIt does work on Docker < 1.8 but on 1.8 it now throws:\r\n\r\n    unable to prepare context: unable to extract stdin to temporary context direcotry: lchown /tmp/docker-build-context-183505935/run_entrypoints.sh: operation not permitted\r\n\r\nI can change it to use sudo:\r\n\r\n            tar c --mtime=2014-01-01 --exclude=__pycache__ --exclude=*.pyc --exclude=Dockerfile.template --mode=\"g=u,o=rX\" . | sudo docker build --tag=$IMAGE_NAME:$BUILD_NUMBER -\r\n\r\nand then it works, but I wonder if it's a bug or some change that affects permissions/users."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/147929374","html_url":"https://github.com/docker/docker/issues/15785#issuecomment-147929374","issue_url":"https://api.github.com/repos/docker/docker/issues/15785","id":147929374,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T04:03:22Z","updated_at":"2015-10-14T04:03:22Z","body":"@colemickens no, there wasn't time to look at this properly before the 1.9 code freeze."}}