Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Desktop startup failed #4016

Closed
sxmartin opened this issue Jun 1, 2019 · 15 comments
Closed

Docker Desktop startup failed #4016

sxmartin opened this issue Jun 1, 2019 · 15 comments

Comments

@sxmartin
Copy link

sxmartin commented Jun 1, 2019

  • [ X ] I have tried with the latest version of my channel (Stable or Edge)
  • [ X ] I have uploaded Diagnostics
  • Diagnostics ID: 7920ABC9-2677-4972-96ED-CCFD1608ACDF/20190601071538

Expected behavior

On Windows startup, Docker Desktop also starts

Actual behavior

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Generic failure
at New-Switch, : line 121
at , : line 411
at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeClient.cs:line 36
at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 92
at Docker.Actions.<>c__DisplayClass19_0.b__0() in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 74
at Docker.WPF.TaskQueue.<>c__DisplayClass19_0.<.ctor>b__1() in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.WPF\TaskQueue.cs:line 59

-- Log file attached

Information

  • Is it reproducible? - YES
  • Is the problem new? - YES
  • Did the problem appear with an update? - Maybe
  • Windows Version: Microsoft Windows [Version 10.0.17134.765]
  • Docker for Windows Version: Community Version 2.0.0.3 (31259)

log.txt

@sxmartin
Copy link
Author

sxmartin commented Jun 1, 2019

  1. Tried reset Docker
  2. Tried changing the CFG in Microsoft Defender settings
  3. Multiple re-installs of Docker Desktop and reboots
    Not sure, where I am missing it. Started failing after mySql install (I think :$ )

@sxmartin
Copy link
Author

sxmartin commented Jun 1, 2019

Tried again on Going to Exploit protection under Windows Security
Add Program to customize
Add c:\windoes\system32\vmcompute.exe
Checked system override for CFG
Restarted Hyper-V Host Compute Service
Unchecked system override for CFG
Apply change
Restarted Hyper-V Host Compute Service
Restarted Docker for Desktop
Now running successfully

@sxmartin sxmartin closed this as completed Jun 1, 2019
@sxmartin
Copy link
Author

sxmartin commented Jun 1, 2019

spoke too soon.
even though the tray icon says Docker running.. The daemon has not started.
Help!

@sxmartin sxmartin reopened this Jun 1, 2019
@sxmartin
Copy link
Author

sxmartin commented Jun 1, 2019

Diagnotic id: 7920ABC9-2677-4972-96ED-CCFD1608ACDF/20190601080901

@sxmartin
Copy link
Author

sxmartin commented Jun 1, 2019

Tried #863, #1221. Still same error

Console log from running the DebugContainerHost.ps1 mentioned in #863
PS C:\Users\sxmartin\Desktop> .\DebugContainerHost.ps1
Checking for common problems
Container Host OS Product Name: Windows 10 Enterprise
Container Host OS Build Label: 17134.1.amd64fre.rs4_release.180410-1804
Describing Windows Version and Prerequisites
[+] Is Windows 10 Anniversary Update or Windows Server 2016 98ms
[+] Has KB3192366, KB3194496, or later installed if running Windows build 14393 11ms
[+] Is not a build with blocking issues 17ms
[+] Has 'Containers' feature installed 49.77s
Describing Docker is installed
[+] A Docker service is installed - 'Docker' or 'com.Docker.Service' 63ms
[+] Service is running 28ms
[+] Docker.exe is in path 6.14s
[+] Docker is registered in the EventLog service 128ms
Describing User has permissions to use Docker daemon
[+] docker.exe should not return access denied 26ms
Describing Windows container settings are correct
[+] Do not have DisableVSmbOplock set to 1 28ms
[+] Do not have zz values set 16ms
[+] Do not have FDVDenyWriteAccess set to 1 18ms
Describing The right container base images are installed
docker.exe : error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/images/json: open //./pipe/docker_engine: The system cannot find
the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate
that the docker daemon is not running.
At C:\Users\sxmartin\Desktop\DebugContainerHost.ps1:106 char:24

  • $imageListOutput = docker.exe images
    
  •                    ~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (error during co...is not running.:String) [], RemoteException
    • FullyQualifiedErrorId : NativeCommandError

WARNING: No mcr.microsoft.com/* base images found. Checking for deprecated images.
[-] At least one of 'mcr.microsoft.com/windows/servercore', 'mcr.microsoft.com/windows/nanoserver', 'mcr.microsoft.com/windows' or deprecated micros
oft/windowsservercore, microsoft/nanoserver should be installed 1.52s
ValidationMetadataException: The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
ParameterBindingValidationException: Cannot validate argument on parameter 'Property'. The argument is null or empty. Provide an argument that is
not null or empty, and then try the command again.
at , C:\Users\sxmartin\Desktop\DebugContainerHost.ps1: line 126
Describing Container network is created
[+] At least one local container network is available 2.11s
[-] At least one NAT, Transparent, or L2Bridge Network exists 18ms
Expected {0} to be greater than {0}
218: $totalnets | Should BeGreaterThan 0
at , C:\Users\sxmartin\Desktop\DebugContainerHost.ps1: line 218
[-] NAT Network's vSwitch is internal 31ms
Expected: {Internal}
But was: {}
223: $switchType | Should Be "Internal"
at , C:\Users\sxmartin\Desktop\DebugContainerHost.ps1: line 223
[+] A Windows NAT is configured if a Docker NAT network exists 63ms
[-] Specified Network Gateway IP for NAT network is assigned to Host vNIC 15ms
Expected: value to not be empty
237: $natGatewayIP | Should Not BeNullOrEmpty
at , C:\Users\sxmartin\Desktop\DebugContainerHost.ps1: line 237
[-] NAT Network's internal prefix does not overlap with external IP' 27ms
Expected {0} to be greater than {0}
264: $hostips.Count | Should BeGreaterThan 0
at , C:\Users\sxmartin\Desktop\DebugContainerHost.ps1: line 264
Showing output from: docker info

Showing output from: docker version
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:31 2019
OS/Arch: windows/amd64
Experimental: false

Showing output from: docker network ls

Getting Warnings & errors in the Windows event logs from the last 24 hours

ProviderName: Microsoft-Windows-Hyper-V-Compute

TimeCreated Id LevelDisplayName Message


6/1/2019 8:46:18 AM 10000 Error The Host Compute Service failed to start: General access denied error (0x80070005)

Logs saved to C:\Users\sxmartin\Desktop\logs_20190601-110742.csv

Getting Docker for Windows daemon logs from the last execution
Note: More logs may be available at C:\Users\sxmartin\AppData\Local\Docker. Only showing the latest 100 lines.

@xwm1992
Copy link

xwm1992 commented Jun 6, 2019

i have the same problem with this Diagnostics ID: 7920ABC9-2677-4972-96ED-CCFD1608ACDF/20190601071538,have you fixed this problem ?

@sxmartin
Copy link
Author

sxmartin commented Jun 6, 2019 via email

@mikeparker
Copy link
Contributor

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Generic failure at New-Switch, : line 121

Others have reported this is due to a broken network adapter (perhaps caused by windows update). Please let me know if this works:

  1. Close docker desktop
  2. Remove the VM powershell -ExecutionPolicy ByPass -File "C:\Program Files\Docker\Docker\resources\MobyLinux.ps1" -destroy
  3. Remove the broken network adapter https://blogs.msdn.microsoft.com/jjameson/2011/03/14/removing-stale-network-adapters-in-hyper-v-vm/
  4. Reset docker desktop to factory defaults
  5. Restart docker desktop

@Zazck
Copy link

Zazck commented Jun 9, 2019

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Generic failure at New-Switch, : line 121

Others have reported this is due to a broken network adapter (perhaps caused by windows update). Please let me know if this works:

  1. Close docker desktop
  2. Remove the VM powershell -ExecutionPolicy ByPass -File "C:\Program Files\Docker\Docker\resources\MobyLinux.ps1" -destroy
  3. Remove the broken network adapter https://blogs.msdn.microsoft.com/jjameson/2011/03/14/removing-stale-network-adapters-in-hyper-v-vm/
  4. Reset docker desktop to factory defaults
  5. Restart docker desktop
C:\Program Files\Docker\Docker\resources\MobyLinux.ps1:96 char:20
+     $VhdRoot = "$((Hyper-V\Get-VMHost -ComputerName localhost).Virtua ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (:) [Get-VMHost], VirtualizationException
    + FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.GetVMHost

failed to fix it after device removal

@sxmartin
Copy link
Author

Re-imaged my with windows 10 Build 1809
Installed the windows Components Hyper-V and Containers
Installed Docker Desktop.
Still getting the same error.. Help!

@sxmartin
Copy link
Author

anybody else face the same problem? thanks for your help

@sxmartin
Copy link
Author

Resolved. it was a Windows security setting.
Click on Exploit Protection settings
Program settings
Find vmcompute.exe
remove CFG override

Restart vmcompute.exe service

@mikeparker
Copy link
Contributor

Thanks for letting us know, i'll update possible solutions to the Generic Failure error to include Control Flow Guard.

@MissionBio
Copy link

Was this ever solved? I have a fresh install of Docker and up to date windows. Followed the docker steps, everything works except the GUI. I can run Ubuntu and all command lines prompt easily.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jul 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants