Closed christopher-watanabe-snkeos closed 1 year ago
[Triage]
This is better suited for the Windows-Containers repo which the .NET Framework container images are based on. The use of cscript
is native to the base Windows image so that's the place to start an investigation from. You'll need to log a new issue there as this issue can't be transferred to that repo unfortunately.
Describe the Bug
I would like to run a visual basic script inside the docker container that places zipped content into a destination inside the docker container. It appears there may be something missing in the base image I am using: mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019, as any attempts to do this yield an unspecified error.
Steps to Reproduce
testZip.zip
with some dummy content inside.docker build . -t test-dotnet-batch-issue
docker container run -it test-dotnet-batch-issue
cscript ./test.vbs
From these steps, I notice the following:
cscript ./test.vbs
yields the following output:It seems the hangup is this line in the .vbs file:
set zipFiles=objShell.NameSpace(zipFilename).items
Other Information
I know I can work around this by writing for example a powershell script that uses Windows native
Expand-Archive
. In the scope of another project, the unzipping is accomplished by a .vbs script however, so I would like to understand more about why this is happening.Output of
docker version
Client: Version: 20.10.9 API version: 1.41 Go version: go1.16.8 Git commit: c2ea9bc Built: Mon Oct 4 16:11:10 2021 OS/Arch: windows/amd64 Context: default Experimental: true
Server: Docker Engine - Community Engine: Version: 20.10.9 API version: 1.41 (minimum version 1.24) Go version: go1.16.8 Git commit: 79ea9d3 Built: Mon Oct 4 16:06:39 2021 OS/Arch: windows/amd64 Experimental: false