"--extra-docker-config" don't work on windows 11 command prompt and PowerShell

Open
#544 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, python
Domain
cli, devops

Research direction

Start by tracing the lean backtest handling of --extra-docker-config on Windows command prompt and PowerShell, then inspect how the supplied volume configuration reaches the Docker container. Compare the requested lean live and lean research command support. Done means the /stock_data volume is mounted with the shown configuration and external data works in the requested stages.

Written by the indexing model from the issue text.

Description

Here is my command line :

lean backtest "test_lean" --extra-docker-config "{""Volumes"": {""/stock_data"": {""bind"": ""c:\\_stock_data"", ""mode"": ""rw""}}}" --verbose --debug debugpy
it won't show any error, but when I paused in debug and login into docker container, the /stock_data has no data, also checked the container volume, it don't have the stock_data volume.

Also hope this option can also add to 'lean live', 'lean research` command line, so that we can use external data in all stage.

Thanks

Dominant language
Python
Stars
335
Forks
172
Avg merge
6h 54m
Merged PRs (30d)
37

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from QuantConnect/lean-cli

All issues in QuantConnect/lean-cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.