none
HCSShim::CreateComputeSystem error RRS feed

  • Question

  • When trying to run a container I get the following error at random:

    Error response from daemon: Cannot start container 0ad520f08db8ab5317ff0716282987528f3477ae8dce95684e35a3f9e7cb0354: HCSShim::CreateComputeSystem - Win32 API call returned error r1=2147943622 err=The network is not present or not started. id=0ad520f08db8ab5317ff0716282987528f3477ae8dce95684e35a3f9e7cb0354 configuration={"SystemType":"Container","Name":"0ad520f08db8ab5317ff0716282987528f3477ae8dce95684e35a3f9e7cb0354","Owner":"docker","IsDummy":false,"VolumePath":"\\\\?\\Volume{0e096a44-48e1-11e5-89cd-00155d03920e}","Devices":[{"DeviceType":"Network","Connection":{"NetworkName":"Virtual Switch","EnableNat":false,"Nat":{"Name":"ContainerNAT","PortBindings":null}},"Settings":null}],"IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\\ProgramData\\docker\\windowsfilter\\0ad520f08db8ab5317ff0716282987528f3477ae8dce95684e35a3f9e7cb0354","Layers":[{"ID":"eb7920ae-4bef-5e0a-b095-eca57dd51556","Path":"C:\\ProgramData\\docker\\windowsfilter\\147bab02f9ed65a211f01d7995855307cb9e7e6b1a66b3090fb44af911970ed5"},{"ID":"c2aa993d-b2e4-584b-939c-84513be3f34e","Path":"C:\\ProgramData\\docker\\windowsfilter\\fde5491793789f9295a68d265de2e67f910e151e125e1c9cdcbb4fa3f63bd492"},{"ID":"7ec42b52-7391-5b25-8df7-3e0c56c6031f","Path":"C:\\ProgramData\\docker\\windowsfilter\\c9e9ea7bb485b1275741fdd400c4c1675b41131fed6a10f72371f7baca57a9a5"},{"ID":"0539a861-de64-5d04-913d-41d5a9dfcc8d","Path":"C:\\ProgramData\\docker\\windowsfilter\\b425a9aec203b7da67c9cd89628e7eba2025b5a712d2b1b34fdc1e18ce0756ec"},{"ID":"ebe621ee-122e-541e-9f66-cc51275790c3","Path":"C:\\ProgramData\\docker\\windowsfilter\\52d7aad9875075f49d36a4895cccf1a072ac3db2c3956111b0b04d80fb7d1306"},{"ID":"79d6d58b-35a7-5a8d-a827-f4461dab83bb","Path":"C:\\ProgramData\\docker\\windowsfilter\\6231abaaa82184252466c69321411b7da72ede15e1d80c8c9a8c9d894e81b802"},{"ID":"f0d4aaa3-c43d-59c1-8ad0-44e6b3381efc","Path":"C:\\ProgramData\\Microsoft\\Windows\\Images\\CN=Microsoft_WindowsServerCore_10.0.10514.0"}]}

    After a server reboot the containers starts fine. Until reboot I keep hitting this error when trying to run.

    Hotfix is installed and I'm trying to run the follow docker run:

    docker run -d -p 9100:9100 -p 9100:9100/udp --name container container/testing

    Saturday, August 22, 2015 3:47 PM

All replies

  • Hi Thomas,

    If you run into this again, can you please run the following commands within PowerShell on the host and paste the output here?

    Get-VMSwitch Get-NetNat -Name ContainerNat Get-NetNatStaticMapping -NatName ContainerNat

    Thank you!
    Lars


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

    Sunday, August 23, 2015 7:54 PM
  • Hey Lars,

    Heres the output after an error occured:

    PS Z:\Containers> Get-VMSwitch

    Name           SwitchType NetAdapterInterfaceDescription
    ----           ---------- ------------------------------
    Virtual Switch NAT

    PS Z:\Containers> Get-NetNat -Name ContainerNat


    Name                             : ContainerNAT
    ExternalIPInterfaceAddressPrefix :
    InternalIPInterfaceAddressPrefix : 172.16.0.0/12
    IcmpQueryTimeout                 : 30
    TcpEstablishedConnectionTimeout  : 1800
    TcpTransientConnectionTimeout    : 120
    TcpFilteringBehavior             : AddressDependentFiltering
    UdpFilteringBehavior             : AddressDependentFiltering
    UdpIdleSessionTimeout            : 120
    UdpInboundRefresh                : False
    Store                            : Local
    Active                           : True

    PS Z:\Containers> Get-NetNatStaticMapping -NatName ContainerNat
    Get-NetNatStaticMapping : No MSFT_NetNatStaticMapping objects found with property 'NatName' equal to 'ContainerNat'.
    Verify the value of the property and retry.
    At line:1 char:1
    + Get-NetNatStaticMapping -NatName ContainerNat
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (ContainerNat:String) [Get-NetNatStaticMapping], CimJobException
        + FullyQualifiedErrorId : CmdletizationQuery_NotFound_NatName,Get-NetNatStaticMapping

    PS Z:\Containers> Get-NetNatStaticMapping
    PS Z:\Containers>

    After I run the command for the second time there is a chance it does start. I noticed this problem usually occurs after I build the container or after a reboot.


    Monday, August 24, 2015 1:11 PM
  • Hm. What is interesting: The configuration that you provided does not list the ports that should be forwarded

    Here is an example of a repro-attempt on my machine:

    [...]
          "Nat":{"Name":"ContainerNAT",
                 "PortBindings":[{"Protocol":"UDP","InternalPort":9100,"ExternalPort":9100},{"Protocol":"TCP","InternalPort":9100,"ExternalPort":9100}]}},
                 "Settings":null}]
    [...]

    Can you please run a docker version and post the output here? (just to make sure we're using the same daemon/client) Additionally what does wmic qfe list return for you?

    Thanks!
    Lars


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

    Tuesday, September 1, 2015 10:30 PM