How to solve problem "Cannot start service from the command line or a debugger. A Windows Service must first be installed and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command." after docker run

Hello everybody!
I want to run .NET Core application on Docker container. This application contains some Windows Service and I get: “Cannot start service from the command line or a debugger. A Windows Service must first be installed and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.” after docker run myContainerName.
Can anybody get me some advices about how to fix this issue? What’s wrong with my container?

1 Like