gpt4 book ai didi

docker - 如何修复由于hns错误而不会重新启动的docker daemon

转载 作者:行者123 更新时间:2023-12-02 21:16:45 31 4
gpt4 key购买 nike

  • Windows Server的Docker
  • Windows Server 1709版,带有容器
  • Docker版本17.06.2-ee-6,构建e75fdb8
  • 群集模式(工作程序节点,具有Ubuntu母版的群集的一部分)

  • 连接到覆盖网络的容器间歇性地丢失其网络适配器后,我重新启动了计算机。现在,守护程序将无法启动。以下是运行docker -D的输出的最后几行。

    请让我知道如何解决此问题。
    time="2018-05-15T15:10:06.731160000Z" level=debug msg="Option Experimental: false"
    time="2018-05-15T15:10:06.731160000Z" level=debug msg="Option DefaultDriver: nat"
    time="2018-05-15T15:10:06.731160000Z" level=debug msg="Option DefaultNetwork: nat"
    time="2018-05-15T15:10:06.734183700Z" level=info msg="Restoring existing overlay networks from HNS into docker"
    time="2018-05-15T15:10:06.735174400Z" level=debug msg="[GET]=>[/networks/] Request : "
    time="2018-05-15T15:12:06.789120400Z" level=debug msg="Network (d4d37ce) restored"
    time="2018-05-15T15:12:06.796122200Z" level=debug msg="Endpoint (4114b6e) restored to network (d4d37ce)"
    time="2018-05-15T15:12:06.796122200Z" level=debug msg="Endpoint (819eb70) restored to network (d4d37ce)"
    time="2018-05-15T15:12:06.797124900Z" level=debug msg="Endpoint (ade55ea) restored to network (d4d37ce)"
    time="2018-05-15T15:12:06.798125600Z" level=debug msg="Endpoint (d0054fc) restored to network (d4d37ce)"
    time="2018-05-15T15:12:06.798125600Z" level=debug msg="Endpoint (e2af8d8) restored to network (d4d37ce)"
    time="2018-05-15T15:12:06.854118500Z" level=debug msg="[GET]=>[/networks/] Request : "
    time="2018-05-15T15:14:06.860654000Z" level=debug msg="start clean shutdown of all containers with a 15 seconds timeout..."
    Error starting daemon: Error initializing network controller: hnsCall failed in Win32: Server execution failed (0x80080005)

    最佳答案

    这是一组完整的步骤,可以完全重建swarm主机中的所有docker问题。有时仅一些步骤就足够了(特别是hns部分),因此您可以先尝试一下。

    Remove all docker services and user-defined networks (so all docker networks except `nat` and `none`
    Leave the swarm cluster (docker swarm leave --force)
    Stop the docker service (PS C:\> stop-service docker)
    Stop the HNS service (PS C:\> stop-service hns)
    In regedit, delete all of the registry keys under these paths:
    HKLM:\SYSTEM\CurrentControlSet\Services\vmsmp\parameters\SwitchList
    HKLM:\SYSTEM\CurrentControlSet\Services\vmsmp\parameters\NicList
    Now go to Device Manager, and disable then remove all network adapters that are “Hyper-V Virtual Ethernet…” adapters
    Now rename your HNS.data file (the goal is to effectively “delete” it by renaming it):
    C:\ProgramData\Microsoft\Windows\HNS\HNS.data
    Also rename C:\ProgramData\docker folder (the goal is to effectively “delete” it by renaming it)
    C:\ProgramData\docker

    Now reboot your machine

    关于docker - 如何修复由于hns错误而不会重新启动的docker daemon,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50355146/

    31 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com