我的docker镜像来自安装了powershell的mcr.microsoft.com/powershell:latest。为什么在构建docker镜像时会出现这个错误:/bin/sh: 1: Install-Module: not found 下面是我的dockerfile: FROM mcr.microsoft.com/powershell:latest
RUN Install-Module dbatools -Force 当我从mcr.microsof
当我在Linux容器上这样做时(我使用的是官方的微软PowerShell容器映像- mcr.microsoft.com/powershell:ubuntu-18.04),模块导入时没有错误,但我无法调用如果我运行Get,Linux容器上没有列出导出的命令,但是在我的Windows机器上。
PowerShell模块的项目是使用dotnet new powershel