I need to run several processes in one container and I follow "Run multiple services in a container" from Docker documentation.
I created Powershell script with Start-Process commands and now I need to run it with CMD, but I can not do this.
FROM mcr.microsoft.com/windows/nanoserver:1890
# some other commands
WORKDIR C:\\my-work-directory
ADD Start.ps1 .
CMD ["powershell.exe", "-File", "Start.ps1"]
I'm always getting error that file not found:
container XXX encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {"CommandLine":"powershell.exe -File Start.ps1","User":"Administrator","WorkingDirectory":"C:\\my-work-directory","CreateStdOutPipe":"true","CreateStdErrPipe":"true","ConsoleSize":"[0,0]"}
Host OS: Windows 2019