Docker Community Forums

Share and learn in the Docker community.

Can't change Docker DNS settings


(Fresnizky) #1

Expected behavior

After selecting Fixed as DNS settings, Docker restarts with the selected DNS

Actual behavior

Failed to destroy VM “MobyLinuxVM” and switch “DockerNAT”: No se ha encontrado el elemento.

Information

I tried this because I couldn’t pull images from the docker repository
I’ve checked the hyper-v virtual switch manager and DockerNAT exists, and in Network Adapters, I have several hyper-v switches created with the name DockerNAT

Output from log:
[10:25:13.416][Notifications ][Info ] Docker is applying your changes…
[10:25:13.478][NamedPipeClient][Info ] Sending Stop()…
[10:25:13.478][NamedPipeServer][Info ] Stop()
[10:25:13.478][HyperV ][Info ] Stop
[10:25:13.478][PowerShell ][Info ] Run script with parameters: -Stop True…
[10:25:14.549][HyperV ][Info ] VM MobyLinuxVM is stopped
[10:25:14.549][NamedPipeClient][Info ] Received response for Stop
[10:25:14.549][NamedPipeClient][Info ] Sending Destroy(True)…
[10:25:14.549][NamedPipeServer][Info ] Stop done.
[10:25:14.566][NamedPipeServer][Info ] Destroy(True)
[10:25:14.566][HyperV ][Info ] Destroy
[10:25:14.567][PowerShell ][Info ] Run script with parameters: -Destroy True -KeepVolume True…
[10:25:15.305][HyperV ][Info ] VM MobyLinuxVM is stopped
[10:25:15.308][HyperV ][Info ] Destroying Switch DockerNAT…
[10:25:19.727][HyperV ][Info ] Destroying Net NAT DockerNAT…
[10:25:19.758][HyperV ][Info ] Recreate the switch and try again to destroy Net NAT DockerNAT…
[10:25:19.821][HyperV ][Info ] Enabled workaround for Build 10586 VMSwitch issue
[10:25:26.849][HyperV ][Info ] Creating Switch: DockerNAT…
[10:25:30.104][HyperV ][Info ] Switch created.
[10:25:31.629][NamedPipeServer][Error ] Unable to execute Destroy: Failed to destroy VM “MobyLinuxVM” and switch “DockerNAT”: No se ha encontrado el elemento.
en System.Management.Automation.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
en System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
[10:25:31.710][NamedPipeClient][Error ] Unable to send Destroy: Failed to destroy VM “MobyLinuxVM” and switch “DockerNAT”: No se ha encontrado el elemento.

[10:25:31.711][Notifications ][Error ] Failed to destroy VM “MobyLinuxVM” and switch “DockerNAT”: No se ha encontrado el elemento.

[10:25:31.727][Program ][Info ] Sending Bugsnag report 68267ba7-282a-4672-b788-d36440075162…
[10:25:37.219][Program ][Info ] Bugsnag report 68267ba7-282a-4672-b788-d36440075162 sent
[10:25:37.222][NamedPipeClient][Info ] Sending DownloadVmLogs()…
[10:25:37.224][NamedPipeServer][Info ] DownloadVmLogs()
[10:25:37.231][PowerShell ][Info ] Run script…
[10:25:37.414][HyperV ][Warning] Unable to download logs: 2016/07/06 10:25:37 Failed to Dial a08bb11f-56c7-47bf-a2d6-ec0b4b5f99bb 445ba2cb-e69b-4912-8b42-d7f494d007ea : Se ha proporcionado un argumento no válido.

[10:25:37.414][NamedPipeServer][Info ] DownloadVmLogs done.
[10:25:37.415][NamedPipeClient][Info ] Received response for DownloadVmLogs
[10:25:54.113][ErrorReportWindow][Info ] Open logs