0
我想通过安装.net核心功能来创建Docker文件。为此,我们需要有源文件,所以我有我的源文件在D:\,它是与完全访问共享。以下是我的docker文件。里面的Docker容器如何访问共享卷
> # escape=` FROM microsoft/iis SHELL ["powershell", "-command"]
> # Install ASP.NET RUN Install-WindowsFeature NET-Framework-45-ASPNET; `
> Install-WindowsFeature Web-Asp-Net45 RUN Install-windowsFeature -Name net-framework-core -Source \\node2\D\sources\sxs;`
> Install-WindowsFeature WEB-ASP-net -Source \\node2\D\sources\sxs
我们可以像这样访问源文件:Source \ node2 \ D \ sources \ sxs。我已经尝试过,但这不起作用。你能建议最好的方法来做到这一点。我们可以将文件复制到容器中,然后安装
你尝试复制下载这些文件? 'ADD' –
ItayB