在启动docker windows容器时未找到vmcomputeagent.exe-非常简单的Dockerfile
Dockerfile:在启动docker windows容器时未找到vmcomputeagent.exe-非常简单的Dockerfile,docker,.net-framework-4.8,Docker,.net Framework 4.8,Dockerfile: FROM mcr.microsoft.com/dotnet/framework/sdk:4.8 WORKDIR /app COPY WebApi.exe /app RUN ls ENTRYPOINT ["/app/WebApi.exe"] 用于生成映像然后运行容器的命令: docker build -t hello . docker run -d -t --name helloContainer hello 错误: ca82a293427
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
WORKDIR /app
COPY WebApi.exe /app
RUN ls
ENTRYPOINT ["/app/WebApi.exe"]
用于生成映像然后运行容器的命令:
docker build -t hello .
docker run -d -t --name helloContainer hello
错误:
ca82a2934274e45abb991ec357d32de28d6ce4da092d6634af8a74c8f4106185
docker:来自守护进程的错误响应:容器
ca82a2934274e45abb991ec357d32de28d6ce4da092d6634af8a74c8f4106185
在HCSSHEM::System::CreateProcess:失败期间遇到错误
Windows系统调用:系统找不到指定的文件。
(0x2)[事件详细信息:提供程序:00000000-0000-0000-0000-000000000000]
[事件详细信息:提供程序:00000000-0000-0000-0000-000000000000]
[活动详情:
onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF7B789A41B:
(呼叫者:00007FF7B7855BDB)异常(2)tid(3b4)80070002系统
找不到指定的文件。
CallContext:[\Bridge\u ProcessMessage\VmHostedContainer\u ExecuteProcess]
提供者:00000000-0000-0000-0000-000000000000]额外信息:
{“CommandLine”:“/app/WebApi.exe”,“WorkingDirectory”:“C:\app”,“Environment”:“{”COMPLUS\u NGenProtectedProcess\u FeatureEnabled”:“0”,“DOTNET\u在容器中运行”:“true”,“DOTNET\u使用轮询文件\u WATCHER”:“true”,“NUGET\u版本”:“5.5.1”,“ROSLYN\u编译器位置”:“C:\Program”
文件(x86)\Microsoft Visual Studio
Studio\2019\BuildTools\MSBuild\Current\Bin\Roslyn“},“EmulateConsole”:true,“CreateStdInPipe”:true,“CreateStdOutPipe”:true,“ConsoleSize”:[55237]}