我正在试验docker。我在x64 Windows 10机器中有一个x64 docker Windows容器。我正在尝试在其中安装.NET 4.5系统。
我在运行想要的文件时遇到了麻烦,我什至无法窥视容器的文件系统以了解正在发生的事情。 我在网上找到的大多数数据都与linux容器有关,所以我有点迷失了。
这是我的docker文件:
# escape=`
FROM microsoft/iis:10.0.14393.206
SHELL ["powershell", "-command"]
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
# Install ASP.NET
RUN Install-WindowsFeature NET-Framework-45-ASPNET; `
Install-WindowsFeature Web-Asp-Net45
RUN Invoke-WebRequest -OutFile c:\SqlLocalDB.msi -Uri http://download.microsoft.com/download/8/D/D/8DD7BDBA-CEF7-4D8E-8C16-D9F69527F909/ENU/x64/SqlLocalDB.MSI
RUN ["cmd", "/S", "/C", "c:\\windows\\syswow64\\msiexec", "/i", "c:\\SqlLocalDB.msi", "IACCEPTSQLLOCALDBLICENSETERMS=YES", "/qn"]
#expose archiver port
EXPOSE 3342
RUN Import-Module WebAdministration; `
Set-ItemProperty 'IIS:\AppPools\.NET v4.5' -Name 'processModel.loadUserProfile' -Value 'True'; `
Set-ItemProperty 'IIS:\AppPools\.NET v4.5' -Name 'processModel.setProfileEnvironment' -Value 'True'
我的命令:
docker exec vms app\ArchiverDB\QuickInstaller.exe
这是我的文件结构:
app
quickInstall.exe
我的错误(已修剪):
failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {"CommandLine":"app\\ArchiverDB\\QuickInstaller.exe","WorkingDirectory":"C:\\app