Visual studio 从VS2019启动docker时卷规格无效
更新 奇怪的是,如果我用Visual studio 从VS2019启动docker时卷规格无效,visual-studio,docker,visual-studio-2019,Visual Studio,Docker,Visual Studio 2019,更新 奇怪的是,如果我用mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim替换基本图像,一切都正常。 但它必须是同一个图像 更新2 我有一个问题要问MSFT: mcr.microsoft.com/dotnet/core/aspnet-3.0-ec6c9791ce4a-3天前-346MB mcr.microsoft.com/dotnet/core/aspnet-3.0.0-ec6c9791ce4a-3天前-346MB mcr.microsof
mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim
替换基本图像,一切都正常。
但它必须是同一个图像
更新2 我有一个问题要问MSFT: mcr.microsoft.com/dotnet/core/aspnet-3.0-ec6c9791ce4a-3天前-346MB mcr.microsoft.com/dotnet/core/aspnet-3.0.0-ec6c9791ce4a-3天前-346MB mcr.microsoft.com/dotnet/core/aspnet-3.0-buster-slim-675139f95df1-3天前-221MB mcr.microsoft.com/dotnet/core/aspnet-3.0.0-rc1-buster-slim-15b700e0a20c-10天前-221MB
3.0.0
和3.0
是Windows容器。你们这些小骗子;-)
更新3 这比我想象的还要疯狂 如果我从Windows 10(在Parallels下)中拉出mcr.microsoft.com/dotnet/core/aspnet:3.0
,我会得到带有哈希值的图像ec6c9791ce4a
但是!如果我在iOS中运行完全相同的命令,那么最终得到的图像具有hash675139f95df1
WTF在干什么
我尝试以停靠的形式启动项目,但出现错误:
错误CTC1015:docker:来自后台程序的错误响应:无效的卷规范:“C:\Microsoft\Xamarin\NuGet:/root/.NuGet/fallbackpackages”
及
错误CTC1015:docker:来自后台程序的错误响应:无效的卷规范:'..\vsdbg\vs2017u5:/remote_调试器:rw'
错误窗口指向Container.targets
文件,该文件位于..\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.9.5\build\Container.targets
奇怪的是,volume指向Xamarin,因为我的解决方案没有相关的项目,而vs2017u5很奇怪
我使用最新的VS2019版本16.3.1
这里是Dockerfile
:
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM base AS final
WORKDIR /app
COPY ./published .
ENTRYPOINT ["dotnet", "luscii.identity.service.dll"]
以下是发布配置文件:
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<PublishProvider>FileSystem</PublishProvider>
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<ProjectGuid>a6fc12f4-6fdb-4a1b-a769-ef609b5e18eb</ProjectGuid>
<publishUrl>published</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
<TargetFramework>netcoreapp3.0</TargetFramework>
<SelfContained>false</SelfContained>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
</PropertyGroup>
</Project>
文件系统
文件系统
调试
任何CPU
真的
假的
a6fc12f4-6fdb-4a1b-a769-ef609b5e18eb
出版
真的
netcoreapp3.0
假的
linux-x64