首页 > 解决方案 > 用于安装 SQL Server 驱动程序的 Docker 命令

问题描述

我已经将我的第一个经典 asp 应用程序部署到 Docker 容器。现在我正在尝试设置 db 连接以进行测试。我有 db 连接测试页面,但它的抛出错误似乎 SQL 驱动程序未安装在 Windows 容器中。任何人都可以帮忙这个,有没有在容器中安装 SQL 驱动程序的命令。找到我使用的 docker 文件。

FROM microsoft/iis:windowsservercore-ltsc2016
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

RUN Install-WindowsFeature Web-ASP

COPY ./share/ClassicAspApp.zip

RUN Expand-Archive -Path ClassicAspApp.zip -DestinationPath C:\ClassicAspApp; `
    Remove-Item ClassicAspApp.zip

RUN Remove-Website -

标签: powershelldockerdocker-composedockerfile

解决方案


推荐阅读