在docker容器上运行iis
我想从我的码头工人那里打电话给iis。如你所见,我有这些图像:在docker容器上运行iis,docker,iis,Docker,Iis,我想从我的码头工人那里打电话给iis。如你所见,我有这些图像: REPOSITORY TAG IMAGE ID CREATED SIZE microsoft/iis latest bb59d00aa26a 3 weeks ago 4.61GB mcr.micr
REPOSITORY TAG IMAGE ID CREATED SIZE
microsoft/iis latest bb59d00aa26a 3 weeks ago 4.61GB
mcr.microsoft.com/windows/servercore ltsc2019 954d1507112f 3 weeks ago 4.43GB
所以我称之为运行windows core:
docker run -i -t 954d1507112f
它可以工作,我打开cmd,我想在我的容器上安装IIS,所以我运行以下命令:
Add-WindowsFeature web-server, web-webserver
但我得到了这个错误:
'Add-WindowsFeature' is not recognized as an internal or external command,
operable program or batch file.
您应该在docker容器中运行
powershell
命令,并在ps
中使用添加WindowsFeature web服务器,web web服务器
您应该在docker容器中运行powershell
命令,并使用添加WindowsFeature web服务器,web服务器
在ps
中,请阅读特定于服务器核心的文档。请阅读特定于服务器核心的文档。