{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/22002","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/22002/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/22002/comments","events_url":"https://api.github.com/repos/docker/docker/issues/22002/events","html_url":"https://github.com/docker/docker/issues/22002","id":148106929,"number":22002,"title":"got \"invalid tar header\" error when I use docker remote API to load tar image file to docker ","user":{"login":"JennyHuang8","id":18445937,"avatar_url":"https://avatars.githubusercontent.com/u/18445937?v=3","gravatar_id":"","url":"https://api.github.com/users/JennyHuang8","html_url":"https://github.com/JennyHuang8","followers_url":"https://api.github.com/users/JennyHuang8/followers","following_url":"https://api.github.com/users/JennyHuang8/following{/other_user}","gists_url":"https://api.github.com/users/JennyHuang8/gists{/gist_id}","starred_url":"https://api.github.com/users/JennyHuang8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JennyHuang8/subscriptions","organizations_url":"https://api.github.com/users/JennyHuang8/orgs","repos_url":"https://api.github.com/users/JennyHuang8/repos","events_url":"https://api.github.com/users/JennyHuang8/events{/privacy}","received_events_url":"https://api.github.com/users/JennyHuang8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-13T15:58:11Z","updated_at":"2016-04-13T15:58:11Z","closed_at":null,"body":"docker version:\r\nDocker version 1.8.2, build 0a8c2e3\r\n\r\nOutput for docker info:\r\nContainers: 12\r\nImages: 438\r\nStorage Driver: devicemapper\r\n Pool Name: docker-8:3-2323415-pool\r\n Pool Blocksize: 65.54 kB\r\n Backing Filesystem: xfs\r\n Data file: /dev/loop0\r\n Metadata file: /dev/loop1\r\n Data Space Used: 9.829 GB\r\n Data Space Total: 107.4 GB\r\n Data Space Available: 18.05 GB\r\n Metadata Space Used: 23.73 MB\r\n Metadata Space Total: 2.147 GB\r\n Metadata Space Available: 2.124 GB\r\n Udev Sync Supported: true\r\n Deferred Removal Enabled: false\r\n Data loop file: /var/lib/docker/devicemapper/devicemapper/data\r\n Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata\r\n Library Version: 1.02.93-RHEL7 (2015-01-28)\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 3.10.0-229.7.2.el7.x86_64\r\nOperating System: CentOS Linux 7 (Core)\r\nCPUs: 2\r\nTotal Memory: 3.703 GiB\r\nName: set5node1.internal.acp.arris.com\r\nID: PRTY:IGFL:2FNB:MEVB:NFHC:IAJP:ICIK:LS5A:QMWD:FFLE:7P65:IYHT\r\n\r\nSteps to reproduce the issue:\r\n1. run the following curl command:\r\ncurl  -v -X POST -H -i \"http://localhost:4243/images/load\" -d @arrs-acptestapp-b-1.0.5.tar\r\n\r\nI got \"invalid tar header\" error in the result:\r\n\r\n* About to connect() to localhost port 4243 (#0)\r\n*   Trying 127.0.0.1...\r\n* Connected to localhost (127.0.0.1) port 4243 (#0)\r\n> POST /images/load HTTP/1.1\r\n> User-Agent: curl/7.29.0\r\n> Host: localhost:4243\r\n> Accept: */*\r\n> Content-Length: 101268586\r\n> Content-Type: application/x-www-form-urlencoded\r\n> Expect: 100-continue\r\n> \r\n< HTTP/1.1 100 Continue\r\n< HTTP/1.1 500 Internal Server Error\r\n< Content-Type: text/plain; charset=utf-8\r\n< Server: Docker/1.8.2 (linux)\r\n< Date: Wed, 13 Apr 2016 15:16:20 GMT\r\n< Content-Length: 76\r\n< Connection: close\r\n< \r\nUntar re-exec error: exit status 1: output: archive/tar: invalid tar header\r\n* we are done reading and this is set to close, stop send\r\n* Closing connection 0\r\n\r\nI can successfully run \"tar tvf\" on this tar file, run command \"docker load -i arrs-acptestapp-b-1.0.5.tar\" and \"docker load < arrs-acptestapp-b-1.0.5.tar\", they all success.\r\n\r\nIs anything wrong with my curl command?"}}