Fix docker tests and support reading env vars

Docker tests were not valid due to the dictionary structure.

Also, support reading environment variables from the config files.
They currently aren't used, only read in.