Unable to create...The computer '...' could not be resolved
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
Steps to reproduce the behavior
- Boot Windows
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.
Can you upload a diagnostic so we can understand the state of your machine (Settings / Diagnose & Feedback / Upload a diagnostic) ?
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/
@simonferquel A diagnostic was uploaded with id: EA9197C6-EA7F-4D1B-B97A-9C7C8602B5FF/2016-10-14_14-15-00
@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,
I've uploaded a separate crash report @ EA9197C6-EA7F-4D1B-B97A-9C7C8602B5FF/2016-10-19_16-00-39 for the beta installation.
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.
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,
Crash report here: EA9197C6-EA7F-4D1B-B97A-9C7C8602B5FF/2016-10-27_11-24-57
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,
Hi, I'm also getting the same issues and below is crash report.
38527887-88C4-47EC-8D21-D98A92197C62/2016-11-08_12-53-42
Temporary fix: write to C:\Windows\System32\drivers\etc\hosts ip address computer name
@fishhead108 thanks! the workaround works.
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.
For me, no broken adapter, hosts didn't work, trying Beta/Experimental didn't work.
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
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! 😁 🎉
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.
I ran into the same issue after installing the latest update. However @fishhead108's suggestion to edit the hosts files fixed my issue.
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
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.
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.