question

YxH2-7688 avatar image
0 Votes"
YxH2-7688 asked Miles-MSFT commented

Can't create process isolation mode docker container using Server 2022 Preview 1

I have Windows Server 2022 Preview (1?) installed as my host. I was hoping to create a container with process isolation mode but I can't get a machine image. The latest as of today (6/29/2021) is 10.0.20344.1 whereas the machine I am using is running 10.0.20348.75.

I would like to request for new server core image that can run on Windows Server 2022 Preview in process isolation mode.

windows-server
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YxH2-7688 avatar image
0 Votes"
YxH2-7688 answered Miles-MSFT commented

Additional data below

 C:\Users\Administrator>docker ps -a
 CONTAINER ID        IMAGE                                                   COMMAND             CREATED             STATUS              PORTS               NAMES
 8cebfc05c9b2        mcr.microsoft.com/windows/server/insider:10.0.20344.1   "cmd"               2 days ago          Created                                 eager_burnell
    
 C:\Users\Administrator>docker start 8cebfc05c9b2
 Error response from daemon: hcsshim::CreateComputeSystem 8cebfc05c9b20df8abbcf23a7bf858aecf472d6e7f66ad5142899a0d47086b22: The container operating system does not match the host operating system.
 (extra info: {"SystemType":"Container","Name":"8cebfc05c9b20df8abbcf23a7bf858aecf472d6e7f66ad5142899a0d47086b22","Owner":"docker","VolumePath":"\\\\?\\Volume{e97069af-91ca-4a74-ad77-ccf31c49fae7}","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\\ProgramData\\docker\\windowsfilter\\8cebfc05c9b20df8abbcf23a7bf858aecf472d6e7f66ad5142899a0d47086b22","Layers":[{"ID":"50184a99-4878-5c1d-83a0-296ec8b9aadb","Path":"C:\\ProgramData\\docker\\windowsfilter\\808dea546927a848a76fd337745f93b7cfa3f9ed50f47e0d9b10b373485c8a21"}],"HostName":"8cebfc05c9b2","HvPartition":false,"EndpointList":["a5302778-979f-4ac9-b1b4-5222c9f22676"],"AllowUnqualifiedDNSQuery":true})
 Error: failed to start containers: 8cebfc05c9b2
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, YxH

Due to our experiment environment , we could not reapper your problem on our computers.
So in order to fix your problem , we suggest you open a request ticket at https://serviceshub.microsoft.com/home .
Our support engineer will get a remote control of your PC and try our best to solve your problem .
Thanks for your understanding and cooperating.

Best Regards

0 Votes 0 ·
YxH2-7688 avatar image
0 Votes"
YxH2-7688 answered YxH2-7688 edited

Hi Miles,

Thanks for the reply.

Note that I have tried to create a container and it is not working using process isolation as kernel builds are different, unless I am missing something.

Please let me know if there is more that I should do.

Regards, YxH

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Miles-MSFT avatar image
0 Votes"
Miles-MSFT answered

Hi

We could download Windows Server 2022 Preview from https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2022-preview
Then , we could choose installation options: server core or server with desktop expericnce.

When we want to create a container with process isolation through Docker, use the --isolation parameter to set --isolation=process.
The specific process please refer to this link which may be helpful. https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/hyperv-container

Best Regards


If the Answer is helpful, please click "Accept Answer" and upvote it.
110494-63002.png



63002.png (14.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.