QuantConnect / QuantConnect/lean-cli

Changing network_mode via --extra-docker-config fails

Open
#363 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.