I am trying to run a nano container with command prompt its working fine and able to execute the commands, but the same way when i try to run the same nano container with powershell its not, its throwing the below screen.
Firing command:
docker run -it mcr.microsoft.com/windows/nanoserver:1809 powershell.exe
Result:
docker: Error response from daemon: container 7a335935e7ef90807c4a37b52bf8592bc26fbd79658d2508849395472ab5b064 encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2)
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000]
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000]
[Event Detail: onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF779519F4B: (caller: 00007FF7794CE13A) Exception(2) tid(38c) 80070002 The system cannot find the file specified.
CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess]
Provider: 00000000-0000-0000-0000-000000000000] extra info: {"CommandLine":"powershell.exe","User":"ContainerUser","WorkingDirectory":"C:\","EmulateConsole":true,"CreateStdInPipe":true,"CreateStdOutPipe":true,"ConsoleSize":[51,192]}.
Can someone help to fix this?
Regards,
Dhamodharan