Docker: Preserve uid of invoking user

(integrated from trunk branch change 93f1ca2 by Nathan Rijksen <n.rijksen@gmail.com>)