fix some dockerinit TODOs/FIXMEs

combine envs
fix logging to file
in full OS mode, child signals parent to continue