{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/14792","labels_url":"https://api.github.com/repos/docker/docker/issues/14792/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/14792/comments","events_url":"https://api.github.com/repos/docker/docker/issues/14792/events","html_url":"https://github.com/docker/docker/issues/14792","id":96285257,"number":14792,"title":"Untar re-exec error: exit status 1: output: unexpected EOF when \"input/output error\" on one file","user":{"login":"arthurlogilab","id":445200,"avatar_url":"https://avatars.githubusercontent.com/u/445200?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurlogilab","html_url":"https://github.com/arthurlogilab","followers_url":"https://api.github.com/users/arthurlogilab/followers","following_url":"https://api.github.com/users/arthurlogilab/following{/other_user}","gists_url":"https://api.github.com/users/arthurlogilab/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurlogilab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurlogilab/subscriptions","organizations_url":"https://api.github.com/users/arthurlogilab/orgs","repos_url":"https://api.github.com/users/arthurlogilab/repos","events_url":"https://api.github.com/users/arthurlogilab/events{/privacy}","received_events_url":"https://api.github.com/users/arthurlogilab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-21T10:43:31Z","updated_at":"2015-08-18T09:34:06Z","closed_at":null,"body":"If for some reason there is a input/output error on one of the files in a subdirectory of the place where one is building the docker image, doker build fails with a untar exit error message : \r\n\r\n```\r\n$ docker -D build .\r\nSending build context to Docker daemon 141.8 kB\r\nSending build context to Docker daemon \r\nError response from daemon: Untar re-exec error: exit status 1: output: unexpected EOF\r\n$ docker -D build  .\r\nDEBU[0000] Can't add file .hg/store/undo to tar: open .hg/store/undo: input/output error \r\n[snip]\r\nDEBU[0000] Can't add file Dockerfile to tar: archive/tar: missed writing 8192 bytes \r\n[snip]\r\nDEBU[0000] Can't close tar writer: archive/tar: missed writing 8192 bytes \r\nSending build context to Docker daemon 141.8 kB\r\nSending build context to Docker daemon \r\nError response from daemon: Untar re-exec error: exit status 1: output: unexpected EOF\r\n$ docker --version\r\nDocker version 1.7.1, build 786b29d\r\n```\r\nremoving that IO error file solves the problem. \r\n\r\nMaybe docker could ignore those files, or have a better error message. \r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/132142657","html_url":"https://github.com/docker/docker/issues/14792#issuecomment-132142657","issue_url":"https://api.github.com/repos/docker/docker/issues/14792","id":132142657,"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-08-18T09:34:06Z","updated_at":"2015-08-18T09:34:06Z","body":"@arthurlogilab ah! there are new APT and YUM repositories now, providing dynamically linked binaries (which solves a number of other issues as well). Check this blog-post for more information;\r\nhttps://blog.docker.com/2015/07/new-apt-and-yum-repos/"}}