{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/25027","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/25027/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/25027/comments","events_url":"https://api.github.com/repos/docker/docker/issues/25027/events","html_url":"https://github.com/docker/docker/issues/25027","id":167463638,"number":25027,"title":"Unable to pass build context as tar with overlay2 graph driver","user":{"login":"mbentley","id":414445,"avatar_url":"https://avatars.githubusercontent.com/u/414445?v=3","gravatar_id":"","url":"https://api.github.com/users/mbentley","html_url":"https://github.com/mbentley","followers_url":"https://api.github.com/users/mbentley/followers","following_url":"https://api.github.com/users/mbentley/following{/other_user}","gists_url":"https://api.github.com/users/mbentley/gists{/gist_id}","starred_url":"https://api.github.com/users/mbentley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbentley/subscriptions","organizations_url":"https://api.github.com/users/mbentley/orgs","repos_url":"https://api.github.com/users/mbentley/repos","events_url":"https://api.github.com/users/mbentley/events{/privacy}","received_events_url":"https://api.github.com/users/mbentley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/storage/overlay","name":"area/storage/overlay","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94"},{"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-25T20:56:19Z","updated_at":"2016-07-26T00:25:38Z","closed_at":null,"body":"**Output of `docker version`:**\r\n\r\n```\r\n$ docker version\r\nClient:\r\n Version:      1.12.0-rc4\r\n API version:  1.24\r\n Go version:   go1.6.2\r\n Git commit:   e4a0dbc\r\n Built:        Wed Jul 13 03:41:15 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.0-rc4\r\n API version:  1.24\r\n Go version:   go1.6.2\r\n Git commit:   e4a0dbc\r\n Built:        Wed Jul 13 03:41:15 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\n$ docker info\r\nContainers: 6\r\n Running: 1\r\n Paused: 0\r\n Stopped: 5\r\nImages: 105\r\nServer Version: 1.12.0-rc4\r\nStorage Driver: overlay2\r\n Backing Filesystem: extfs\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host null overlay\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: seccomp\r\nKernel Version: 4.6.0-1-amd64\r\nOperating System: Debian GNU/Linux stretch/sid\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 1.958 GiB\r\nName: localdev\r\nID: 2GH4:KUEP:Q5HH:I6T7:KZM6:2AOC:MA5S:QSVV:FJ72:IPR5:7ABX:4MR2\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nUsername: mbentley\r\nRegistry: https://index.docker.io/v1/\r\nInsecure Registries:\r\n 127.0.0.0/8\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\nDebian Sid VM running on VirtualBox\r\n\r\n\r\n**Steps to reproduce the issue:**\r\n1. Try to build an image from a tar file (https://docs.docker.com/engine/reference/commandline/build/#/build-with)\r\n2. Get error\r\n\r\n\r\n**Describe the results you received:**\r\n\r\nUsing a basic Dockerfile:\r\n\r\n```\r\nFROM alpine:latest\r\nCOPY Dockerfile /Dockerfile\r\n```\r\n\r\n```\r\n$ tar -cz Dockerfile | docker build -\r\nSending build context to Docker daemon    165 B\r\nStep 1 : FROM alpine:latest\r\n ---> 4e38e38c8ce0\r\nStep 2 : COPY Dockerfile /Dockerfile\r\nstat /var/lib/docker/overlay2/4adddf69508af614c5fd03e5bee893d4d9b8a3bdbbd5ad55f32ca65143927a9a/merged/Dockerfile: no such file or directory\r\n```\r\n\r\n**Describe the results you expected:**\r\nI expect the build to succeed (it works on aufs):\r\n\r\n```\r\n$ tar -cz Dockerfile | docker build -\r\nSending build context to Docker daemon 10.24 kB\r\nStep 1 : FROM alpine:latest\r\n ---> 13e1761bf172\r\nStep 2 : COPY Dockerfile /Dockerfile\r\n ---> ffe6f7814e84\r\nRemoving intermediate container d45bf063c843\r\nSuccessfully built ffe6f7814e84\r\n```\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/235127014","html_url":"https://github.com/docker/docker/issues/25027#issuecomment-235127014","issue_url":"https://api.github.com/repos/docker/docker/issues/25027","id":235127014,"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":"2016-07-26T00:25:38Z","updated_at":"2016-07-26T00:25:38Z","body":"ping @dmcgowan "}}
{"actor":{"display_login":"thaJeztah"}}