Unable to run docker container docker4dotnet/nanoserver

Learning docker following a course in udemy. i have all the prerequisites like docker desktop and switched to windows container. While trying to run a container using

docker container run docker4dotnet/nanoserver hostname

getting error like below

Unable to find image ‘docker4dotnet/nanoserver:latest’ locally latest: Pulling from docker4dotnet/nanoserver b5c97e1d373f: Extracting [==================================================>] 103MB/103MB docker: failed to register layer: re-exec error: exit status 1: output: hcsshim::ProcessBaseLayer ?\C:\ProgramData\Docker\windowsfilter\90f22cdfe817e491c24b8e26f35b4ec43c6477ce0c86cdbfb95a59e2606762a5: The semaphore timeout period has expired .

unable to figure it out. can some one help on this

NOTE : tried to switch the container to linux but it says

Unable to find image ‘docker4dotnet/nanoserver:latest’ locally latest: Pulling from docker4dotnet/nanoserver b5c97e1d373f: Downloading docker: image operating system “windows” cannot be used on this platform.

App version :
Client:
Cloud integration: v1.0.22
Version: 20.10.12
API version: 1.41
Go version: go1.16.12
Git commit: e91ed57
Built: Mon Dec 13 11:44:07 2021
OS/Arch: windows/amd64
Context: default
Experimental: true

Server: Docker Desktop 4.5.1 (74721)
Engine:
Version: 20.10.12
API version: 1.41 (minimum version 1.24)
Go version: go1.16.12
Git commit: 459d0df
Built: Mon Dec 13 11:42:13 2021
OS/Arch: windows/amd64
Experimental: true

OS version : 10.0.19042 Build 19042

I get the same error message when i run docker in powershell (elevated). The error appears 5 minutes after it seems like it completed the extraction.

PS C:\WINDOWS\system32> docker run -it mcr.microsoft.com/windows/nanoserver:win10-21h1-preview cmd.exe
Unable to find image ‘mcr.microsoft.com/windows/nanoserver:win10-21h1-preview’ locally
win10-21h1-preview: Pulling from windows/nanoserver
521b4ff1716a: Extracting [==================================================>] 116.9MB/116.9MB
docker: failed to register layer: re-exec error: exit status 1: output: hcsshim::ProcessBaseLayer \?\C:\ProgramData\Docker\windowsfilter\96e6a3e5c61bb5d3093baa27515749a7f0aba937078e1a9b70e94039e80f4cdd: The semaphore timeout period has expired.

Same docker info.

OS: Windows 10 Pro 21H2 (OS Build 19044.1526).

Not sure if it’s related but I’m also using a corporate VPN since I’m working from home.
Also, this only happens when I’ve switched over to using Windows containers. Linux containers are no issue at all.

true,i also use corporate VPN, getting the issue as explained above. can someone help on this

Still have not resolved this.

Have ruled out my VPN as the problem since

  1. I’m able to RDP into an on-premise desktop but still get the same error message on the other machine.
  2. I went into the office to connect my laptop to the network directly but still get the same error message.

Currently trying to rule out the antivirus program but I will need to coordinate with corporate IT support for help with disabling it temporarily. Also will ask them for help with troubleshooting as I suspect it’s a Windows OS issue with the corporate image. I’ve confirmed with a couple of other colleagues that they have the same issue.

In case anyone is still following this thread, updating to Docker for Windows 4.6.1 (76265) did not fix the problem for me.