So, just for clarity the 2nd error I'm still getting is:

==> docker2k12r2: Killing the container: 
6d90ed6ff388440b4b959680ddbf42a1d5b9691dabb7fb464ff878fd2d502f46
Build 'docker2k16' errored: Error processing command: Error uploading ps 
script containing env vars: Failed to upload to 
'${env:SYSTEMROOT}\Temp\packer-env-vars-5a9d6b15-0a6a-3859-50a8-1f4f35aa695c.ps1'
 
in container: destination 
"6d90ed6ff388440b4b959680ddbf42a1d5b9691dabb7fb464ff878fd2d502f46:${env:SYSTEMROOT}\Temp"
 
must be a directory
. exit status 1.

But I'm trying to push PowerShell scripts at the moment for provisioning - 
so after your reply, I'll look again!

The previous error with the windows environment var was:

==> Some builds didn't complete successfully and had errors:
--> docker2k16: Error running container: Docker exited with a non-zero exit 
status.
Stderr: docker: Error response from daemon: invalid volume specification: 
'c:/tmp/packer-docker751308459:/packer-files'.

And what seemed to fix it for me was adding the environment 
var PACKER_TMP_DIR=c:\tmp and also in the JSON template, you need to 
specifify a more windows path for the container folder:

"type": "docker",

   "image": "microsoft/windowsservercore", 

   "container_dir": "c:/app",

At least a container would spin up after setting these.  It *may* help 
someone else.

Regards,
Si.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/4e64e516-17c6-4a8d-b269-0b7d281ab24f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to