QuantConnect / lean-cli

CLI for running the LEAN engine locally and in the cloud
https://www.lean.io/cli
Apache License 2.0
194 stars 99 forks source link

Changing network_mode via --extra-docker-config fails #363

Open alphaDev23 opened 11 months ago

alphaDev23 commented 11 months ago

DOCKER_NETWORK is hard coded in constants.py causing any configuration changes via command line to change the network_mode to fail. The default should be used unless overridden via the command line. Due to the required configuration of the docker daemon, the lean container needed to be configured with network_mode = host in order for the container to correctly connect to the other services.