Closed arindamnayak closed 6 months ago
[Triage] @John-Hart can you please take a look at this?
@arindamnayak do you know what the OS Version is that you pulled?
Since 4.8 is a multi-arch tag you could have pulled ltsc2106 which is version 14393 and it contains IISAdministration module version 1.0. The New-IISSiteBinding was introduced in 1.1 which explains why you see it when you pulled http://mcr.microsoft.com/dotnet/framework/wcf:4.8-20230214-windowsservercore-ltsc2019.
@John-Hart , I pulled for arch 2019 , and based os version where this is being used is 2019 only,
@arindamnayak can you try pulling the ltsc2019 image 4.8-20231010-windowsservercore-ltsc2019 to make sure?
@John-Hart , with that tag 4.8-20231010-windowsservercore-ltsc2019
, it is working fine.
@arindamnayak, is the issue resolved on your end?
To investigate further, you can check the Windows version that's being pulled using the multi-platform tag by running the container:
CMD> ver
Microsoft Windows [Version 10.0.22631.2715]
CMD> docker run --rm --entrypoint cmd mcr.microsoft.com/dotnet/framework/wcf:4.8
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
Running a Windows 11 host (version > 22000) will pull a Server 2016 image due to https://github.com/containerd/containerd/issues/6508. For that reason it's recommended to always explicitly pull the operating system version you want when using Windows containers.
[Triage] Closing as there was no response and @arindamnayak stated that "it [was] working fine".
Describe the Bug
While using
New-IISSiteBinding
withinDockerfile
with base image asmcr.microsoft.com/dotnet/framework/wcf:4.8
, it says command not found.Whereas this was working with earlier images e.g.
http://mcr.microsoft.com/dotnet/framework/wcf:4.8-20230214-windowsservercore-ltsc2019
Steps to Reproduce
Use
mcr.microsoft.com/dotnet/framework/wcf:4.8
as docker image , then dodocker run {IMAGE_ID}
then rundocker exec -it {container_id} "powershell"
inside the powershell runNew-IISSiteBinding
, it says the above error. Whereas with older version, it was working fine.Other Information
Output of
docker version
Output of
docker info