-
Notifications
You must be signed in to change notification settings - Fork 746
Closed
Labels
platform/Windows/Non-WSL2Microsoft Windows (non-WSL2)Microsoft Windows (non-WSL2)
Description
Issue:
I am unable to run a Windows container nerdctl + containerd, using the following command:
nerdctl run -it hello-world:latest
When running the above command, I get the following error:
time="2022-01-28T04:05:51-08:00" level=fatal msg="failed to create shim: hcs::CreateComputeSystem 29e97983ef3a26e0f4d214059d65229c1ecf65c20686a2e2537d4eaf8a9e7ca5: The container operating system does not match the host operating system.: unknown"
Also, if I try using the following command to manually specify the platform type --platform windows/amd64 I get this slightly different error message:
time="2022-01-28T04:05:30-08:00" level=warning msg="Platform \"windows/amd64\" seems incompatible with the host platform \"windows/amd64\". If you see \"exec format error\", see https://github.com/containerd/nerdctl/blob/master/docs/multi-platform.md"
time="2022-01-28T04:05:32-08:00" level=fatal msg="failed to create shim: hcs::CreateComputeSystem fb3c289785a8ff2f3f71b018f689fa3eeae36ae1820c6b47eeb39053d0c561b3: The container operating system does not match the host operating system.: unknown"
If it helps, I noticed something weird when I run nerdctl.exe images. When I run the command, it prints the container image twice for some reason:

Finally, for some additional information, here's the information I get back if I run nerdctl.exe info:
PS C:\Users\Administrator> nerdctl.exe info
Client:
Namespace: default
Debug Mode: false
Server:
Server Version: v1.5.9
Storage Driver: windows
Logging Driver: json-file
Cgroup Driver:
Cgroup Version:
Plugins:
Log: json-file
Storage: windows-lcow windows
Security Options:
Kernel Version:
Operating System:
OSType: windows
Architecture:
CPUs: 0
Total Memory: 0B
Name: WIN-J0I7NK4V564
ID: 4855ff2e-67d5-4f2a-94da-a86773dec56d
Is there something I did wrong with setting up containerd, or is there something I need to configure with nerdctl? Any guidance would be greatly appreciated.
My Environment:
- OS: Windows Server 2019
- OS Version: 1809 (OS Build 17763.1282)
- CPU arch: Intel x86-64
- nerdctl version: v0.16.0
- containerd version v1.5.9
- Other information:
- Is the Windows Container feature enabled: Yes
- Is Hyper-v enabled: Yes, and I also tried with it uninstalled but I still encounter the same issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
platform/Windows/Non-WSL2Microsoft Windows (non-WSL2)Microsoft Windows (non-WSL2)