{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2832","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2832/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2832/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2832/events","html_url":"https://github.com/mitchellh/packer/issues/2832","id":111490336,"number":2832,"title":"docker file upload failure","user":{"login":"eugenetaranov","id":1123643,"avatar_url":"https://avatars.githubusercontent.com/u/1123643?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenetaranov","html_url":"https://github.com/eugenetaranov","followers_url":"https://api.github.com/users/eugenetaranov/followers","following_url":"https://api.github.com/users/eugenetaranov/following{/other_user}","gists_url":"https://api.github.com/users/eugenetaranov/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenetaranov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenetaranov/subscriptions","organizations_url":"https://api.github.com/users/eugenetaranov/orgs","repos_url":"https://api.github.com/users/eugenetaranov/repos","events_url":"https://api.github.com/users/eugenetaranov/events{/privacy}","received_events_url":"https://api.github.com/users/eugenetaranov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/docker","name":"builder/docker","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-14T20:50:21Z","updated_at":"2015-10-15T04:57:25Z","closed_at":null,"body":"Hello,\r\n\r\nI am using Packer v0.8.6 on linux 64bit, docker 1.7 \r\n\r\nFirst thing in my recipe is to put file into docker container but fails immediately, please look into error attached: \r\nhttps://gist.github.com/eugenetaranov/f7a9c7f30fc3c2952fb3\r\n\r\nLet me know if you need any other info.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/148281822","html_url":"https://github.com/mitchellh/packer/issues/2832#issuecomment-148281822","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/2832","id":148281822,"user":{"login":"sidcarter","id":72859,"avatar_url":"https://avatars.githubusercontent.com/u/72859?v=3","gravatar_id":"","url":"https://api.github.com/users/sidcarter","html_url":"https://github.com/sidcarter","followers_url":"https://api.github.com/users/sidcarter/followers","following_url":"https://api.github.com/users/sidcarter/following{/other_user}","gists_url":"https://api.github.com/users/sidcarter/gists{/gist_id}","starred_url":"https://api.github.com/users/sidcarter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidcarter/subscriptions","organizations_url":"https://api.github.com/users/sidcarter/orgs","repos_url":"https://api.github.com/users/sidcarter/repos","events_url":"https://api.github.com/users/sidcarter/events{/privacy}","received_events_url":"https://api.github.com/users/sidcarter/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T04:57:25Z","updated_at":"2015-10-15T04:57:25Z","body":"I was about to open an issue for the same. I'm using:\r\n\r\n```\r\n# ./packer -v\r\n0.8.6\r\n# docker -v\r\nDocker version 1.7.1, build 446ad9b/1.7.1\r\n# cat /etc/centos-release\r\nCentOS Linux release 7.1.1503 (Core)\r\n```\r\n\r\nAnd here's my template:\r\n\r\n```\r\n# cat docker-heketi.json\r\n{\r\n    \"builders\":[{\r\n        \"type\": \"docker\",\r\n        \"image\": \"centos:centos7\",\r\n        \"pull\": true,\r\n        \"export_path\": \"docker-heketi-image.tar\"\r\n    }],\r\n    \"provisioners\":[\r\n        {\r\n            \"type\": \"shell\",\r\n            \"scripts\": [\r\n                \"provision/scripts/prep-heketi.sh\"\r\n            ]\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nAnd here's the errors:\r\n```\r\n2015/10/15 04:50:45 [INFO] 699 bytes written for 'uploadData'\r\n2015/10/15 04:50:45 packer-builder-docker: 2015/10/15 04:50:45 Executing in container cca9b12c3eb3b6df74bf469fe75c3759cd6b4d2fef33811407d68bc8a93349fa: \"(command cp /packer-files/upload026000179 /tmp/script_7943.sh) >/packer-files/cmd079914230 2>&1; echo $? >/packer-files/cmd079914230-exit\"\r\n2015/10/15 04:50:49 packer-provisioner-shell: 2015/10/15 04:50:49 Retryable error: Error uploading script: Upload failed with non-zero exit status: 1\r\n2015/10/15 04:50:51 packer-provisioner-shell: 2015/10/15 04:50:51 [INFO] 699 bytes written for 'uploadData'\r\n2015/10/15 04:50:51 [INFO] 699 bytes written for 'uploadData'\r\n2015/10/15 04:50:51 packer-builder-docker: 2015/10/15 04:50:51 Executing in container cca9b12c3eb3b6df74bf469fe75c3759cd6b4d2fef33811407d68bc8a93349fa: \"(command cp /packer-files/upload858505693 /tmp/script_7943.sh) >/packer-files/cmd072223640 2>&1; echo $? >/packer-files/cmd072223640-exit\"\r\n2015/10/15 04:50:55 packer-provisioner-shell: 2015/10/15 04:50:55 Retryable error: Error uploading script: Upload failed with non-zero exit status: 1\r\n```\r\n\r\nWill try packer from master and see if that helps."}}