Use DOCKER_TMPDIR=/var/lib/docker/tmp for large temp files (rebase/fix of 6456)

Closes #6456

Thanks @rhatdan

Ping @crosbymichael or @vieux.
Also, don't we usually do camelCasing for variables?  (ie, should this be `rootDir` instead?)