gpt4 book ai didi

docker - 无法加载共享库 'kernel32.dll' 或其依赖项之一

转载 作者:行者123 更新时间:2023-12-02 18:35:55 26 4
gpt4 key购买 nike

我尝试使用 Docker 运行控制台应用程序 Net core 但在启动容器时出现此错误。

Exception: Unable to load shared library 'kernel32.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libkernel32.dll: cannot open shared object file: No such file or directory

这是我的 Dockerfile

FROM mcr.microsoft.com/dotnet/core/runtime:2.2
WORKDIR /app
COPY . /app
ENTRYPOINT ["dotnet", "Application.dll"]

有人遇到过这个问题吗?

最佳答案

检查是否dotnet/dotnet-docker issue 618 ,它会报告类似的错误消息可能会有所帮助。

Make sure you install it in your runtime and not in your dotnet build.

Moving the install up to underFROM microsoft/dotnet:2.2-aspnetcore-runtime AS base solved my issue

关于docker - 无法加载共享库 'kernel32.dll' 或其依赖项之一,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57174692/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com