support for running client in a container or on host