If I run docker using

sudo docker run --name lean_2_4 -it qc1_lean_algorithm2

It works.

But, If I run docker using

sudo docker run --name lean_2_4 -it -v "/home/LeanDockerAccess/Data:/Lean-master/Data" qc1_lean_algorithm2

It doesen't work. 

Setup: Ubuntu 18.04, Docker, quantconnect/lean:algorithm

Terminal logs as below

sudo docker run --name lean_2_4 -it -v "/home/LeanDockerAccess/Data:/Lean-master/Data" qc1_lean_algorithm2 20190218 12:23:20.135 Trace:: Config.Get(): Configuration key not found. Key: plugin-directory - Using default value: 20190218 12:23:20.143 Trace:: Config.Get(): Configuration key not found. Key: composer-dll-directory - Using default value: /Lean-master/Launcher/bin/Release/ 20190218 12:23:20.173 Trace:: Config.GetValue(): debug-mode - Using default value: False 20190218 12:23:22.044 Trace:: Config.Get(): Configuration key not found. Key: data-directory - Using default value: ../../../Data/ 20190218 12:23:22.045 Trace:: Config.Get(): Configuration key not found. Key: version-id - Using default value: 20190218 12:23:22.046 Trace:: Config.Get(): Configuration key not found. Key: cache-location - Using default value: ../../../Data/ 20190218 12:23:22.046 Trace:: Engine.Main(): LEAN ALGORITHMIC TRADING ENGINE v2.4.0.0 Mode: RELEASE (64bit) 20190218 12:23:22.046 Trace:: Engine.Main(): Started 12:23 PM 20190218 12:23:22.049 Trace:: Config.GetValue(): job-project-id - Using default value: 0 20190218 12:23:22.049 Trace:: Config.Get(): Configuration key not found. Key: algorithm-path-python - Using default value: ../../../Algorithm.Python/ 20190218 12:23:22.053 Trace:: Config.GetValue(): regression-update-statistics - Using default value: False 20190218 12:23:22.054 Trace:: Config.Get(): Configuration key not found. Key: lean-manager-type - Using default value: LocalLeanManager 20190218 12:23:22.057 Trace:: Config.Get(): Configuration key not found. Key: cloud-api-url - Using default value: https://www.quantconnect.com/api/v2/ 20190218 12:23:22.102 Trace:: JobQueue.NextJob(): Selected QuantConnect.Algorithm.CSharp.dll 20190218 12:23:22.167 Trace:: Config.GetValue(): ignore-version-checks - Using default value: False 20190218 12:23:22.168 Trace:: Config.GetValue(): algorithm-manager-time-loop-maximum - Using default value: 20 20190218 12:23:22.355 Trace:: Loader.TryCreateILAlgorithm(): Loading only the algorithm assembly 20190218 12:23:22.460 ERROR:: Loader.TryCreateILAlgorithm(): Algorithm type name not found, or unable to resolve multiple algorithm types to a single type. Please verify algorithm type name matches the algorithm name in the configuration file and that there is one and only one class derived from QCAlgorithm.The type initializer for 'QuantConnect.Securities.MarketHoursDatabase' threw an exception. 20190218 12:23:22.509 ERROR:: Engine.Run(): QuantConnect.Lean.Engine.Setup.AlgorithmSetupException: During the algorithm initialization, the following exception has occurred: Algorithm type name not found, or unable to resolve multiple algorithm types to a single type. Please verify algorithm type name matches the algorithm name in the configuration file and that there is one and only one class derived from QCAlgorithm.The type initializer for 'QuantConnect.Securities.MarketHoursDatabase' threw an exception. at QuantConnect.Lean.Engine.Setup.ConsoleSetupHandler.CreateAlgorithmInstance (QuantConnect.Packets.AlgorithmNodePacket algorithmNodePacket, System.String assemblyPath) [0x00062] in <f21b21eb20da4d0190c6e1608ef78942>:0 at QuantConnect.Lean.Engine.Engine.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Lean.Engine.AlgorithmManager manager, System.String assemblyPath) [0x000f5] in <f21b21eb20da4d0190c6e1608ef78942>:0 20190218 12:23:22.512 Trace:: JOB HANDLERS: 20190218 12:23:22.512 Trace:: DataFeed: QuantConnect.Lean.Engine.DataFeeds.FileSystemDataFeed 20190218 12:23:22.512 Trace:: Setup: QuantConnect.Lean.Engine.Setup.ConsoleSetupHandler 20190218 12:23:22.512 Trace:: RealTime: QuantConnect.Lean.Engine.RealTime.BacktestingRealTimeHandler 20190218 12:23:22.512 Trace:: Results: QuantConnect.Lean.Engine.Results.BacktestingResultHandler 20190218 12:23:22.512 Trace:: Transactions: QuantConnect.Lean.Engine.TransactionHandlers.BacktestingTransactionHandler 20190218 12:23:22.512 Trace:: Alpha: QuantConnect.Lean.Engine.Alphas.DefaultAlphaHandler 20190218 12:23:22.557 Trace:: Config.GetValue(): send-via-api - Using default value: False 20190218 12:23:22.559 ERROR:: Algorithm.Initialize() Error: During the algorithm initialization, the following exception has occurred: Algorithm type name not found, or unable to resolve multiple algorithm types to a single type. Please verify algorithm type name matches the algorithm name in the configuration file and that there is one and only one class derived from QCAlgorithm.The type initializer for 'QuantConnect.Securities.MarketHoursDatabase' threw an exception. Stack Trace: QuantConnect.Lean.Engine.Setup.AlgorithmSetupException: During the algorithm initialization, the following exception has occurred: Algorithm type name not found, or unable to resolve multiple algorithm types to a single type. Please verify algorithm type name matches the algorithm name in the configuration file and that there is one and only one class derived from QCAlgorithm.The type initializer for 'QuantConnect.Securities.MarketHoursDatabase' threw an exception. at QuantConnect.Lean.Engine.Setup.ConsoleSetupHandler.CreateAlgorithmInstance (QuantConnect.Packets.AlgorithmNodePacket algorithmNodePacket, System.String assemblyPath) [0x00062] in <f21b21eb20da4d0190c6e1608ef78942>:0 at QuantConnect.Lean.Engine.Engine.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Lean.Engine.AlgorithmManager manager, System.String assemblyPath) [0x000f5] in <f21b21eb20da4d0190c6e1608ef78942>:0 QuantConnect.Lean.Engine.Setup.AlgorithmSetupException: During the algorithm initialization, the following exception has occurred: Algorithm type name not found, or unable to resolve multiple algorithm types to a single type. Please verify algorithm type name matches the algorithm name in the configuration file and that there is one and only one class derived from QCAlgorithm.The type initializer for 'QuantConnect.Securities.MarketHoursDatabase' threw an exception. at QuantConnect.Lean.Engine.Setup.ConsoleSetupHandler.CreateAlgorithmInstance (QuantConnect.Packets.AlgorithmNodePacket algorithmNodePacket, System.String assemblyPath) [0x00062] in <f21b21eb20da4d0190c6e1608ef78942>:0 at QuantConnect.Lean.Engine.Engine.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Lean.Engine.AlgorithmManager manager, System.String assemblyPath) [0x000f5] in <f21b21eb20da4d0190c6e1608ef78942>:0 20190218 12:23:22.560 Trace:: Debug: Your log was successfully created and can be retrieved from: /Lean-master/Launcher/bin/Release/BasicTemplateFrameworkAlgorithm-log.txt 20190218 12:23:22.560 Trace:: BacktestingResultHandler.Run(): Ending Thread... 20190218 12:23:22.620 Trace:: Waiting for threads to exit... 20190218 12:23:22.620 Trace:: Engine.Run(): Disposing of setup handler... 20190218 12:23:22.621 Trace:: Engine.Main(): Analysis Completed and Results Posted. Engine.Main(): Analysis Complete. Press any key to continue. 20190218 12:23:31.937 Trace:: Engine.Main(): Packet removed from queue: BasicTemplateFrameworkAlgorithm 20190218 12:23:31.937 Trace:: LeanEngineSystemHandlers.Dispose(): Disposed of system handlers. 20190218 12:23:31.938 Trace:: LeanEngineAlgorithmHandlers.Dispose(): Disposed of algorithm handlers. 20190218 12:23:31.939 Trace:: Program.Main(): Exiting Lean...

 

Author