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

==> docker2k12r2: Killing the container: 
Build 'docker2k16' errored: Error processing command: Error uploading ps 
script containing env vars: Failed to upload to 
in container: destination 
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 
Stderr: docker: Error response from daemon: invalid volume specification: 

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.


This mailing list is governed under the HashiCorp Community Guidelines - Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub 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 view this discussion on the web visit
For more options, visit

Reply via email to