QuantConnect / QuantConnect/lean-cli
Changing network_mode via --extra-docker-config fails
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 326
- Forks
- 168
- Avg merge
- 3d 50m
- Merged PRs (30d)
- 3
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in constants.py and trace how --extra-docker-config is applied to the Docker configuration. Check how DOCKER_NETWORK and network_mode are selected, then verify that the default remains in effect unless the command-line configuration overrides it, including the lean container connection scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100