Fork me on GitHub

docker 遇到Could not execute because the application was not found or a compatible 问题

Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
* You intended to execute a .NET program:
The application 'xxx.dll' does not exist.
* You intended to execute a .NET SDK command:
It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
https://aka.ms/dotnet-download

 

docker run --name modelservice -p 5000:5000 -v d:/docker/model:/app modelservice:v1.0.0

 

这是我的挂载运行命令,存在这个问题的原因是由于挂载理解错误

d:/docker/model路径是一个空目录  挂载到/app后  ,/app  目录也变成了一个空目录,导致运行失败

posted @ 2021-11-11 10:39  爱悟空  阅读(1983)  评论(0编辑  收藏  举报