From 83de056e7f3e399dc1f0c7ceeb4516a13884b32b Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Tue, 21 Feb 2017 14:50:06 -0800 Subject: [PATCH] document docker staging directory. --- website/source/docs/builders/docker.html.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/source/docs/builders/docker.html.md b/website/source/docs/builders/docker.html.md index f802823d0..6a7dbc1c1 100644 --- a/website/source/docs/builders/docker.html.md +++ b/website/source/docs/builders/docker.html.md @@ -354,3 +354,11 @@ the future: and other metadata. Packer builds a raw Docker container image that has none of this metadata. You can pass in much of this metadata at runtime with `docker run`. + +## Overriding the host directory + +By default, Packer creates a temporary folder under your home directory, and +uses that to stage files for uploading into the container. If you would like to +change the path to this temporary folder, you can set the `PACKER_TMP_DIR` +environment variable. This can be useful, for example, if you have your home +directory permissions set up to disallow access from the docker daemon.