hellow guys,i am newbie to docker.i am facing an error.i have pulled the image of mongodb and created container on this image.container is up and running.when i run command docker exec -it mongo-db /bin/sh.following error is encountered
Getting an error
countered 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!00007FF769E69FAB: (caller: 00007FF769E1E19A) Exception(7) tid(188) 80070002 The system cannot find the file specified.
CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess]
Provider: 00000000-0000-0000-0000-000000000000]
Platform : windows 10
Looks like you Docker Desktop is configured to run Windows container. Either switch to Linux containers, and exec into the container using the command you used, or if you really want to use Windows containers figure out what command is available inside the Windows container.