Hi there, I need some help setting up the docker on my local mac, I followed the document
https://github.com/QuantConnect/Lean/blob/master/.vscode/readme.md#Running-Lean-in-the-Containerbut the docker doesn't run properly,
> Executing task: /Users/wlyu/dev/QuantConnect/Lean/run_docker.sh IMAGE=quantconnect/lean:latest CONFIG_FILE=/Users/wlyu/dev/QuantConnect/Lean/Launcher/config.json DATA_DIR=/Users/wlyu/dev/QuantConnect/Lean/Data RESULTS_DIR=/Users/wlyu/dev/QuantConnect/Lean/Results DEBUGGING=Y PYTHON_DIR=/Users/wlyu/dev/QuantConnect/Lean/Algorithm.Python EXIT=Y <
Docker container starting, attach to Mono process at localhost:55555 to begin
Error: No such container: LeanEngine
Pulling Docker image: quantconnect/lean:latest
latest: Pulling from quantconnect/lean
Digest: sha256:1927b9c786d6585c0c5cecf657c78d052302f63369ffa68f32c9083d3959d90f
Status: Image is up to date for quantconnect/lean:latest
Launching LeanEngine with command:
docker run --rm --mount type=bind,source=/Users/wlyu/dev/QuantConnect/Lean/Launcher/config.json,target=/Lean/Launcher/config.json,readonly -v /Users/wlyu/dev/QuantConnect/Lean/Data:/Data:ro -v /Users/wlyu/dev/QuantConnect/Lean/Results:/Results --name LeanEngine -p 5678:5678 --expose 6000 -v /Users/wlyu/dev/QuantConnect/Lean/Algorithm.Python:/Lean/Algorithm.Python -p 55555:55555 --entrypoint mono quantconnect/lean:latest --debug --debugger-agent=transport=dt_socket,server=y,address=0.0.0.0:55555,suspend=y QuantConnect.Lean.Launcher.exe --data-folder /Data --results-destination-folder /Results --config /Lean/Launcher/config.json
Jason Yu
ok, using the option 2, run the `run_docker.sh` in a terminal, it works. not sure why the option 1 doesn't work. :-D
Derek Melchin
Hi Jason,
Thanks for sharing the solution.
Best,
Derek Melchin
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Jason Yu
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!