powershell - 用于安装 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 -
解决方案
推荐阅读
- python - 如何在 C(++) API 中为小输入实现 Tensorflow Python model() (__call__) 性能?
- deep-learning - 自定义 pytorch DenseNet 模型上的 grad cam
- django - 部署 Django 应用程序时 Heroku 中的应用程序错误,具体来说,日志尾部显示 = Build failed -- 检查您的构建输出:*link*
- php - Eloquent 模型:防止将瞬态(或“虚拟”)属性保存到数据库
- mysql - 查询在 MySQL 中运行良好,并在雪花中给出“in select Clause is not a aggregate or in the group by clause”错误
- javascript - 计算属性不更新 vue
- laravel - Laravel 将 Collection 从 Blade 发送到 VueJs
- python - 对数字进行排序的最佳算法是什么?
- python - 滑动窗口视图输出尺寸
- javascript - 收藏按钮