我正在尝试在 Windows 7 的 docker 上运行 asp.net 核心应用程序。我安装了 Visual Studio 2015 Enterprise(更新 3)和 Visual Studio Tools for Docker。此外,我能够在发布配置中运行应用程序。
我没有对 Dockerfile 和 compose 文件进行任何更改,这些是在我创建项目并添加 Docker 支持时创建的默认设置。
当我使用调试配置运行应用程序时,我收到以下错误,并且它没有运行任何 docker 容器来运行和调试应用程序:
Error MSB4018 The "PrepareForLaunch" task failed unexpectedly.
System.InvalidOperationException: Unable to validate volume mapping. For troubleshooting, follow instructions from http://aka.ms/DockerToolsTroubleshooting
at Microsoft.DotNet.Docker.BuildTasks.PrepareForLaunch.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.DotNet.Docker.BuildTasks.DockerBaseTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() SampleCoreApp C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Publishing\ImportAfter\Microsoft.DotNet.Docker.targets 70
解决此问题的任何帮助或线索都会有所帮助。