Pass in environment from container config in switchns.

If environment is [], then use the one from the container configuration.