Windows container failed to start with error, “failed to create endpoint on network nat: HNS failed with error : Failed to create endpoint.”

后端 未结 4 937
你的背包
你的背包 2021-01-12 06:01

I have been trying Windows Containers on windows server 2016 TP5. Suddenly I started getting error while running a container with port maping option -p 80:80

4条回答
  •  花落未央
    2021-01-12 06:46

    For me these steps solved the problem:

    Stop-Service docker
    Get-ContainerNetwork | Remove-ContainerNetwork
    Get-NetNat | Remove-NetNat
    Get-VMSwitch | Remove-VMSwitch
    Start-Service docker
    

    (suggested by JMesser81 at:https://github.com/Microsoft/Virtualization-Documentation/issues/273)

提交回复
热议问题