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

Closes #6456

Thanks @rhatdan

Ping @crosbymichael or @vieux.
Why are we adding `DOCKER_TMPDIR` and not just honoring `TMPDIR`?  This will break existing installs that are setting TMPDIR.