ZBLOG

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "dotnet": executable file not found in $PATH:

This error message is indicating that the Docker container is unable to find the “dotnet” executable file in its $PATH.

To resolve this issue, you may need to install the .NET Core runtime or SDK within your Docker image. You can do this by adding a command to your Dockerfile that installs .NET Core, such as:

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        curl \
        gnupg \
        && curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg \
        && mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ \
        && curl -o /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/debian/10/prod.list \
        && apt-get update && apt-get install -y --no-install-recommends dotnet-sdk-3.1

This command will download and install the .NET Core SDK version 3.1 within your Docker image.

Once you have installed .NET Core, you should be able to run your application within the Docker container without encountering this error.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=4910

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?