for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Unable to create...The computer '...' could not be resolved

Open briwilcox opened this issue 10 years ago • 38 comments

Expected behavior

Docker daemon with Hyper-V starts at startup

Actual behavior

Docker fails to start

Information

A diagnostic was uploaded with id: EA9197C6-EA7F-4D1B-B97A-9C7C8602B5FF/2016-10-14_14-15-00

Below I've replaced my actual computer name with (computer-name)

[14:07:10.373][Program ][Info ] Version: 1.12.1-stable [14:07:10.457][Program ][Info ] Starting on: 10/14/2016 2:07:10 PM [14:07:10.467][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources [14:07:10.477][Program ][Info ] OS: Windows 10 Enterprise [14:07:10.495][Program ][Info ] Edition: Enterprise [14:07:10.509][Program ][Info ] Id: 1607 [14:07:10.521][Program ][Info ] Build: 14393 [14:07:10.548][Program ][Info ] BuildLabName: 14393.321.amd64fre.rs1_release_inmarket.161004-2338 [14:07:10.589][Program ][Info ] Sha1: 995236d98308333f27e3a36505dd761ac9c843f3 [14:07:10.632][Program ][Info ] You can send feedback, including this log file, at https://github.com/docker/for-win/issues [14:07:11.597][TrackingStatus ][Info ] Crash report and usage statistics are enabled [14:07:11.629][Analytics ][Info ] Usage Statistic: appLaunched [14:07:11.745][NamedPipeClient][Info ] Sending Version()... [14:07:11.772][NamedPipeClient][Info ] Received response for Version [14:07:11.779][Analytics ][Info ] Usage Statistic: heartbeat [14:07:11.759][NamedPipeServer][Info ] Version done. [14:07:12.523][NamedPipeClient][Info ] Sending Start(Docker.Core.Settings)... [14:07:12.526][Updater ][Info ] Checking for updates on channel Stable... [14:07:12.534][NamedPipeServer][Info ] Start(Docker.Core.Settings) [14:07:12.545][HyperV ][Info ] Stop [14:07:12.567][PowerShell ][Info ] Run script with parameters: -Stop True... [14:07:12.731][Updater ][Info ] Local build 7135 is as good as the remote 7135 on channel Stable [14:07:17.234][HyperV ][Info ] VM MobyLinuxVM does not exist [14:07:17.258][HyperVGuids ][Info ] Installing GUIDs... [14:07:17.269][HyperVGuids ][Info ] GUIDs installed [14:07:17.280][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe... [14:07:18.435][Firewall ][Info ] Ports are opened [14:07:18.441][HyperV ][Info ] Create [14:07:18.449][PowerShell ][Info ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso... [14:07:27.545][HyperV ][Info ] Creating Switch: DockerNAT... [14:07:41.909][HyperV ][Info ] Hyper-V is running [14:07:41.909][HyperV ][Info ] Create [14:07:41.909][PowerShell ][Info ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso... [14:07:51.039][HyperV ][Info ] Creating Switch: DockerNAT... [14:08:04.556][NamedPipeServer][Error ] Unable to execute Start: Unable to create: The computer '(computer-name)' could not be resolved. Make sure you typed the machine name correctly and that you have network access. at , : line 340 at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters) at Docker.Backend.ContainerEngine.Linux.Start(Settings settings) at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.b__0(Object[] parameters) at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) [14:08:04.556][NamedPipeClient][Error ] Unable to send Start: Unable to create: The computer '(computer-name)' could not be resolved. Make sure you typed the machine name correctly and that you have network access. at , : line 340 [14:08:04.571][Notifications ][Error ] Unable to create: The computer '(computer-name)' could not be resolved. Make sure you typed the machine name correctly and that you have network access. at , : line 340 [14:08:11.551][ErrorReportWindow][Info ] Open logs [14:12:20.347][FeedbackSettings][Info ] Open logs

Steps to reproduce the behavior

  1. Boot Windows

briwilcox avatar Oct 14 '16 21:10 briwilcox

Yes, I am facing the same problem. It works the time when I install it several weeks ago. Today I want to start learning about Docker and I get the same error.

joshuaavalon avatar Oct 16 '16 12:10 joshuaavalon

Can you upload a diagnostic so we can understand the state of your machine (Settings / Diagnose & Feedback / Upload a diagnostic) ?

simonferquel avatar Oct 18 '16 12:10 simonferquel

Hi @briwilcox You might want to try the Beta channel instead of the stable one because it contains more recent fixes: https://docs.docker.com/docker-for-windows/

dgageot avatar Oct 18 '16 14:10 dgageot

@simonferquel A diagnostic was uploaded with id: EA9197C6-EA7F-4D1B-B97A-9C7C8602B5FF/2016-10-14_14-15-00

briwilcox avatar Oct 19 '16 22:10 briwilcox

@dgageot I tried docker beta. Fails to start for a similar reason:

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The computer 'computer name' could not be resolved. Make sure you typed the machine name correctly and that you have network access. at New-Switch, : line 123 at , : line 337 at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters) at Docker.Backend.ContainerEngine.Linux.Start(Settings settings) at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.b__0(Object[] parameters) at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

I've uploaded a separate crash report @ EA9197C6-EA7F-4D1B-B97A-9C7C8602B5FF/2016-10-19_16-00-39 for the beta installation.

briwilcox avatar Oct 19 '16 23:10 briwilcox

Similar issue here:

25749FEA-4204-443F-B987-F081E680E169/2016-10-22_13-25-05

My PC was win 8.1, upgraded to 10+hyper V and has zonealarm. I disabled zonealarm completely during installation and startup but docker still fails to start.

casperdcl avatar Oct 22 '16 12:10 casperdcl

Just wanted to add this is still happening on Docker v 1.12.3-beta29.2 (8290)

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The computer (computer name) could not be resolved. Make sure you typed the machine name correctly and that you have network access. at New-Switch, : line 123 at , : line 362 at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters) at Docker.Backend.ContainerEngine.Linux.Start(Settings settings) at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.b__0(Object[] parameters) at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

Crash report here: EA9197C6-EA7F-4D1B-B97A-9C7C8602B5FF/2016-10-27_11-24-57

briwilcox avatar Oct 27 '16 18:10 briwilcox

I can stop reporting these if you want but seeing this in the latest beta update: 1.12.3-beta29.3 (8418):

EA9197C6-EA7F-4D1B-B97A-9C7C8602B5FF/2016-11-02_14-26-39

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The computer '(Computer Name)' could not be resolved. Make sure you typed the machine name correctly and that you have network access. at New-Switch, : line 123 at , : line 362 at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters) at Docker.Backend.ContainerEngine.Linux.Start(Settings settings) at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.b__0(Object[] parameters) at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

briwilcox avatar Nov 02 '16 21:11 briwilcox

Hi, I'm also getting the same issues and below is crash report.

38527887-88C4-47EC-8D21-D98A92197C62/2016-11-08_12-53-42

tarunendra avatar Nov 08 '16 20:11 tarunendra

Temporary fix: write to C:\Windows\System32\drivers\etc\hosts ip address computer name

RootMePLS avatar Nov 09 '16 14:11 RootMePLS

@fishhead108 thanks! the workaround works.

roolebo avatar Dec 08 '16 10:12 roolebo

The workaround with hosts didn't worked for me. I noticed that I have a network adapter called Broken Docker Adapter (20161215T1111536705Z) (1) .. that for some reason exists.

Disabling that did the trick.

daniel-onisoru avatar Dec 16 '16 11:12 daniel-onisoru

For me, no broken adapter, hosts didn't work, trying Beta/Experimental didn't work. Added a new Issue with Diagnostic as I found a new glitch to this. It seems to think the mobylinux.iso is invalid and tells me to use a "valid Boot Media". Issue #402 with attached diagnostic number.

Phoenyx33 avatar Jan 20 '17 01:01 Phoenyx33

Same issue. Tried uninstalling it, re-installing it, installing the beta version, .. Since the last update of Docker it doesn't start anymore for me. No broken network adapters or anything to see.

(Windows 10 Pro with recent hardware, i5 6600K, Gigabyte Z170N-WIFI, Samsung Pro 840 SSD, ..)

3E50F123-046F-4158-A67E-D4BCD708C35C/2017-01-21_19-25-41

wouterds avatar Jan 21 '17 18:01 wouterds

Same issue here - Docker fails to start and it reports that it can't my machine name can't be resolved.

:boom: Crash Report: 93F4B946-F34A-4EBF-AFC6-B3F6151F3464/2017-01-23_09-26-59

Tried a complete re-install, no dice.

Let me know if there's anything you want me to try/guinea pig. I need to get this up and running ASAP! 😄

Update

The HOSTS file fix (adding the machine name with loopback address) worked! 😁 🎉

robcthegeek avatar Jan 23 '17 09:01 robcthegeek

Personally there was no way for me to get around this other than leaving ZoneAlarm permanently uninstalled. If anyone has zonealarm + docker + win10 all working harmoniously do let me know.

casperdcl avatar Jan 23 '17 15:01 casperdcl

I ran into the same issue after installing the latest update. However @fishhead108's suggestion to edit the hosts files fixed my issue.

zezke avatar Jan 30 '17 08:01 zezke

I also encountered the same problem after updating to 1.13. To find my loopback address I typed Ping Loopback into Powershell. It turns out my loopback address is in IPv6, so that was what I added to the hosts file (as my original attempt of 127.0.0.1 wasn't working).

::1 COMPUTERNAME

Seems to be working now

djmarland avatar Feb 02 '17 12:02 djmarland

I've changed the title to better reflect the issue.

On our systems we do not have the computer name in C:\Windows\System32\drivers\etc\hosts and don't encounter the issue so I'm a little at a loss here why this fails for some users. However, the workaround seems easy and straight forward.

rn avatar Feb 15 '17 12:02 rn

Ran into the same issue today. Had a different issue first after updating to the latest version 17.03.0-ce-win1 (10296) and followed a recommendation to reset the network adapters on Windows 10 via Settings > Network&Internet > Status > Network Reset. After rebooting and trying to start Docker again, I am presented with the issue here: Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The computer 'COMPUTERNAM' could not be resolved. Make sure you typed the machine name correctly and that you have network access.

The strange thing is that COMPUTERNAM in my case is missing a character at the end and therefore it makes sense that it doesn't resolve. The length of the computer-name in my case is 16, but docker is reporting on 15.

Edit If I go to the TCP/IP settings of my network interface Advanced > WINS and Disable NetBIOS over TCP/IP, the issue disappears (meaning the error message isn't the one mentioned here).

Edit2 Seems like what I last posted isn't correct. Tried to reset my docker install and am now back to the same issue, even with NetBIOS is disabled.

nsgundy avatar Mar 03 '17 19:03 nsgundy