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  目录也变成了一个空目录,导致运行失败


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM