none
Cannot start container err={Machine Type Mismatch} RRS feed

  • Question

  • Hi,

    I have a physical server running Windows 2016 Tp3 Server Core, build ver:10.0.10531 N/A Build 10531


    I prepared the system for running windows container using the ContainerSetup.ps1 script. I followed the examples to create a container using the images downloaded by the script. 

    PS C:\Users\Administrator> docker images

    REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
    windowsservercore   10.0.10514.0        0d53944cb84d        3 weeks ago         9.697 GB
    windowsservercore   latest              0d53944cb84d        3 weeks ago         9.697 GB

    When I try to create and run the container I get the following error:

    PS C:\Users\Administrator> docker run -it --name dockerdemo windowsservercore cmd
    Error response from daemon: Cannot start container 1b9adfb080870a72a77b0f3dd8460a0bd45afa9c24acb85b0de66afea3c7e033: HCSShim::CreateComputeSystem - Win32 API call returned error r1=2147943106 err={Machine Type Mismatch}
    The image file %hs is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load. id=1b9adfb080870a72a77b0f3dd8460a0bd45afa9c24acb85b0de66afea3c7e033 configuration={"SystemType":"Container","Name":"1b9adfb080870a72a77b0f3dd8460a0bd45afa9c24acb85b0de66afea3c7e033","Owner":"docker","IsDummy":false,"VolumePath":"\\\\?\\Volume{4c822501-576c-11e5-bcd7-000af73f4a77}","Devices":[{"DeviceType":"Network","Connection":{"NetworkName":"Virtual Switch","EnableNat":false,"Nat":{"Name":"ContainerNAT","PortBindings":null}},"Settings":null}],"IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\\ProgramData\\docker\\windowsfilter\\1b9adfb080870a72a77b0f3dd8460a0bd45afa9c24acb85b0de66afea3c7e033","Layers":[{"ID":"f0d4aaa3-c43d-59c1-8ad0-44e6b3381efc","Path":"C:\\ProgramData\\Microsoft\\Windows\\Images\\CN=Microsoft_WindowsServerCore_10.0.10514.0"}]}

    Is it because the base OS container image has a different version than the host OS? Is there a way to make this work?

    Regards,

    Swapnil


    Thursday, September 10, 2015 8:45 AM

Answers

  • Hi Swapnil,

    Currently you need a container base image that fits the build of Windows Server that you're running. Therefore - no, unless you either use TP3 + the TP3 container base image or a newer build with the matching container base image.

    Hope this helps,
    Lars


    This posting is provided AS IS with no warranties, and confers no rights. You assume all risk for your use.

    Monday, September 14, 2015 5:04 AM

All replies

  • Hi Swapnil,

    Currently you need a container base image that fits the build of Windows Server that you're running. Therefore - no, unless you either use TP3 + the TP3 container base image or a newer build with the matching container base image.

    Hope this helps,
    Lars


    This posting is provided AS IS with no warranties, and confers no rights. You assume all risk for your use.

    Monday, September 14, 2015 5:04 AM
  • Thanks Lars.

    Regards,

    Swapnil

    Thursday, September 24, 2015 9:44 AM