This error may indicate that the docker daemon is not running windows

This error may indicate that the docker daemon is not running windows

«Docker Desktop Starting. » forever on Windows

I have tried so many ways but didn’t solve:

3 Answers 3

Trending sort

Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.

It falls back to sorting by highest score if no posts are trending.

Switch to Trending sort

I’ve found out another symptom leading to the solution is also related to WSL.

On one side, Docker service won’t start throwing this error:

error during connect: This error may indicate that the docker daemon is not running.: Get «http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version»: open //./pipe/docker_engine: The system cannot find the file specified.

And on the other, WSL is unresponsive. Attempting to run a WSL Distro or WSL command directly on CMD, won’t return any output at all. It will just hang in there.

So the solution is common to WSL and Docker. I’ve found in a question regarding the WSL issue, that the LxssManager Windows service is staled (it may show under services.msc as Stopping and all the buttons are greyed out, or I’ve even seen it Running apparently, but with the Docker and WSL issues above, so something is wrong with it still.)

First, we have to get LxssManager PID in order to kill it. Using an elevated shell, we can get it this way:

Having the PID, we can kill the process but beware I wasn’t able to kill it using kill or taskkill commands. I was getting the following error:

To effectively kill the process, do as following:

Replace XXXXX with PID, of course. Having done so, start the LxssManager service:

A word of warning: I’ve noted in some cases this is not enough for unknown (to me) technical reasons even if LxssManager service is shown as Running. Just repeat the above steps! Sometimes it works doing this once, sometimes doing it twice for some reason.

TL;DR

Docker unable to start on Windows 10 #2210

Comments

Getitdan commented Jul 15, 2018 •

Expected behavior

Docker should run on windows 10.

Actual behavior

Docker does not start.

Information

Also, the log.txt file includes the following errors:

What have I tried
This happens all over again (even after a full uninstalling & installing).
The docker icon in tray is red. I tried the following command (as suggested by: #587):
netsh interface ipv4 set address name=»vEthernet (DockerNAT)» static 10.0.75.1 255.255.255.0
This made docker tray icon to go white («Docker is running» status), instead of red, pretending to work. But. now, running «docker ps» results in the following error:

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.37/containers/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.

I have also tried to disable hyper-v, and let docker to start it. Still didn’t work.

This is really frustrating, as I cannot use Docker at all.
I made an upgrade to my Windows, from 7 to 10, only to get Docker running.
But all I’m getting are problems. Why isn’t the normal installation simply work?
Thanks!

Steps to reproduce the behavior

The text was updated successfully, but these errors were encountered:

bogere commented Jul 16, 2018

Getitdan commented Jul 16, 2018 •

@bogere Thanks for your input. My Windows is already fully updated:
This error may indicate that the docker daemon is not running windows. Смотреть фото This error may indicate that the docker daemon is not running windows. Смотреть картинку This error may indicate that the docker daemon is not running windows. Картинка про This error may indicate that the docker daemon is not running windows. Фото This error may indicate that the docker daemon is not running windows

I did nothing wrong, and docker won’t work. Please help me.

rn commented Jul 16, 2018

@Getitdan do you run any AV software by any chance? Have you tried a factory reset?

Getitdan commented Jul 16, 2018 •

@rn I have just disabled my Nod32 Antivirus, and reinstalled docker. But sadly, the same problem occurs.

I upgraded my Windows 7 to Windows 10. Do you have any other suggestion, or should I format my whole pc? (if this what you mean by factory reset). Thanks a lot for your response! It’s really important for me.

Update: usually docker is not running. But sometimes, after a «Restart» option inside docker, it is suddenly shown as running. Then, I try to run simple commands and get errors.

And:
docker ps
shows:

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.37/containers/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.

Getitdan commented Jul 17, 2018 •

Update:
I’ve tried this command:
docker-machine create default
and got:

Now, I disabled hyper-v, reinstalled docker, made a reset, and run:
docker-machine create default

Running pre-create checks.
Creating machine.
(default) Copying C:\Users\user.docker\machine\cache\boot2docker.iso to C:\Users\user.docker\machine\machines\default\boot2docker.iso.
(default) Creating VirtualBox VM.
(default) Creating SSH key.
(default) Starting the VM.
(default) Check network to re-create if needed.
(default) Windows might ask for the permission to create a network adapter. Sometimes, such confirmation window is minimized in the taskbar.
(default) Creating a new host-only adapter produced an error: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe hostonlyif create failed:
(default) 0%.
(default) Progress state: E_INVALIDARG
(default) VBoxManage.exe: error: Failed to create the host-only adapter
(default) VBoxManage.exe: error: Assertion failed: [!aInterfaceName.isEmpty()] at ‘F:\tinderbox\win-5.2\src\VBox\Main\src-server\HostNetworkInterfaceImpl.cpp’ (76) in long __cdecl HostNetworkInterface::init(class com::Bstr,class com::Bstr,class com::Guid,enum __MIDL___MIDL_itf_VirtualBox_0000_0000_0038).
(default) VBoxManage.exe: error: Please contact the product vendor!
(default) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(default) VBoxManage.exe: error: Context: «enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)» at line 94 of file VBoxManageHostonly.cpp
(default)
(default) This is a known VirtualBox bug. Let’s try to recover anyway.
(default) Found a new host-only adapter: «VirtualBox Host-Only Ethernet Adapter #11»
(default) Windows might ask for the permission to configure a network adapter. Sometimes, such confirmation window is minimized in the taskbar.
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP.
(default) The host-only adapter is corrupted. Let’s stop the VM, fix the host-only adapter and restart the VM
(default) Windows might ask for the permission to configure a network adapter. Sometimes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP.
Waiting for machine to be running, this may take a few minutes.
Detecting operating system of created instance.
Waiting for SSH to be available.
Detecting the provisioner.
Provisioning with boot2docker.
Copying certs to the local machine directory.
Copying certs to the remote machine.
Setting Docker configuration on the remote daemon.
Checking connection to Docker.
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env default

But docker is red.

Bottom line: nothing works. I’ve tried everything. Hope someone can help.

Docker forever in «Docker is starting..» at Windows task

I have installed a Docker stable version, and it took forever to start. Until now I have not seen the notification showing Docker is running. I can only see the Docker icon at the taskbar, showing Docker is starting.

I am running on Windows 10 Pro, Intel Core 2 Duo E8500, supporting virtualization.

This error may indicate that the docker daemon is not running windows. Смотреть фото This error may indicate that the docker daemon is not running windows. Смотреть картинку This error may indicate that the docker daemon is not running windows. Картинка про This error may indicate that the docker daemon is not running windows. Фото This error may indicate that the docker daemon is not running windows

18 Answers 18

Trending sort

Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.

It falls back to sorting by highest score if no posts are trending.

Switch to Trending sort

Thanks to https://github.com/docker/for-win/issues/7050, you should just simply run these two lines of commands inside powerShell: First Exit docker hub desktop, then run these commands in PowerShell:

Important Note: As @ Nachtalb said «I think it should be noted that this removes all docker containers and data. (WLS: Unregisters the distribution and deletes the root filesystem.)»

This error may indicate that the docker daemon is not running windows. Смотреть фото This error may indicate that the docker daemon is not running windows. Смотреть картинку This error may indicate that the docker daemon is not running windows. Картинка про This error may indicate that the docker daemon is not running windows. Фото This error may indicate that the docker daemon is not running windows

Personally, the most non-destructive method for myself has been to use:

Docker then indicates its starting the wsl services during it’s start process and my issues are resolved.

Other methods (like register/unregister) tend to be much more destructive and I lose configuration/data/volumes.

The Diagnose and Feedback menu should allow you to access the logs which are in:

It will generate a zip file with said logs and other information.

The default recommendation is:

But sometimes, all the options in the «Reset» pane are grayed out.

For testing, desactivating the AV (AntiVirus) is an option (again, just to be tested).

Check also the state of your Network adapater in the device manager.

If you have a third-party network product like a VPN (for instance https://www.zerotier.com/), try and uninstall it before restarting docker.

Resetting Hyper-V could help:

Go to «Turn Windows features on or off», disable all Hyper-V related features, reboot, then Docker should ask if it can enable and reboot for you.
Let it do that and see if it’s fixed. If not I’d probably try manually re-enabling Hyper-V.

I had a problem with most recent version. I uninstalled it, removed all docker folders and server and virtual switch from hyper-v and then reinstalled and it worked.

Cannot start Docker for Windows: Fails to Initialize #601

Comments

mitchellmaler commented Mar 22, 2017

Expected behavior

Docker for win to start.

Actual behavior

Docker failed to initilize.

Information

Unable to create an instance of Docker.Actions: Unable to create an instance of Docker.WPF.WelcomeWindow
at Docker.Core.di.Singletons.NewInstance(Type type, Int32 depth)
at Docker.Core.di.Singletons.Get(Type type, Int32 depth)
at Docker.Core.di.Singletons.GetT
at Docker.Program.Run(IReadOnlyCollection`1 args)

Version: 17.03.0-ce-win1 (10296)
Channel: stable
Sha1: e5a07a1a69a5123c71e24ca2aa9e6f875fa26d08
Started on: 2017/03/22 09:36:29.985
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows 10 Enterprise
Edition: Enterprise
Id: 1607
Build: 14393
BuildLabName: 14393.693.amd64fre.rs1_release.161220-1747
File: C:\Users\MM025313\AppData\Local\Docker\log.txt
CommandLine: «C:\Program Files\Docker\Docker\Docker for Windows.exe»
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[09:36:30.099][GUI ][Info ] Starting.
[09:36:30.417][Tracking ][Info ] Crash report and usage statistics are enabled
[09:36:30.421][SegmentApi ][Info ] Usage statistic: appLaunched
[09:36:30.538][NamedPipeClient][Info ] Sending Version().
[09:36:30.541][NamedPipeClient][Info ] Received response for Version
[09:36:30.541][SegmentApi ][Info ] Usage statistic: heartbeat
[09:36:30.540][NamedPipeServer][Info ] Version done in 00:00:00.
[09:36:30.820][GUI ][Error ] Unable to create an instance of Docker.Actions: Unable to create an instance of Docker.WPF.WelcomeWindow
[09:38:22.990][ErrorReportWindow][Info ] Open logs

Steps to reproduce the behavior

Try to start the Docker for Windows program/service. I immediately get the error and it wont start.

The text was updated successfully, but these errors were encountered:

friism commented Apr 11, 2017

Docker for Windows won’t run purely as a service. Are you trying to open the desktop app, or doing something else?

valorisdev commented Apr 13, 2017

I’ve the same issue too.
I try to open the desktop app.

Unable to create an instance of Docker.Actions: Unable to create an instance of Docker.WPF.WelcomeWindow
à Docker.Core.di.Singletons.NewInstance(Type type, Int32 depth)
à Docker.Core.di.Singletons.Get(Type type, Int32 depth)
à Docker.Core.di.Singletons.GetT
à Docker.Program.Run(IReadOnlyCollection`1 args)

Crash report
log.txt

nvn6w commented Apr 17, 2017 •

I have same problem.
I installed Docker Toolbox, Docker worked property. But when I started Kitematic, Windows has crashed. I reboot my PC and could not start Docker again.

Unable to create an instance of Docker.Actions: Unable to create an instance of Docker.WPF.WelcomeWindow
at Docker.Core.di.Singletons.NewInstance(Type type, Int32 depth)
at Docker.Core.di.Singletons.Get(Type type, Int32 depth)
at Docker.Core.di.Singletons.GetT
at Docker.Program.Run(IReadOnlyCollection`1 args)

Crash Report
log.txt

mitchellmaler commented May 17, 2017 •

I just ran the installer again and I can see com.docker.service is running in the background. I tried to run powershell (Admin) and run docker commands and I get

shell client error

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.27/containers/json?all=1: 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.

When I click the desktop icon either normally or as admin for Docker for Windows I get presented with a error page that says:

Desktop Client Error:

Unable to create an instance of Docker.Actions: Unable to create an instance of Docker.WPF.WelcomeWindow
at Docker.Core.di.Singletons.NewInstance(Type type, Int32 depth)
at Docker.Core.di.Singletons.Get(Type type, Int32 depth)
at Docker.Core.di.Singletons.GetT
at Docker.Program.Run(IReadOnlyCollection`1 args)

I check the logs and here is what It says:

Version: 17.03.1-ce-win12 (12058)
Channel: stable
Sha1: d1db12684b33b778cfc3012e92959e50eb486fcd
Started on: 2017/05/17 08:24:39.162
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows 10 Enterprise
Edition: Enterprise
Id: 1607
Build: 14393
BuildLabName: 14393.1198.amd64fre.rs1_release_sec.170427-1353
File: C:\Users\MM025313\AppData\Local\Docker\log.txt
CommandLine: «C:\Program Files\Docker\Docker\Docker for Windows.exe»
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[08:24:39.283][GUI ][Info ] Starting.
[08:24:39.613][Tracking ][Info ] Crash report and usage statistics are enabled
[08:24:39.617][SegmentApi ][Info ] Usage statistic: appLaunched
[08:24:39.731][NamedPipeClient][Info ] Sending Version().
[08:24:39.734][NamedPipeClient][Info ] Received response for Version
[08:24:39.734][SegmentApi ][Info ] Usage statistic: heartbeat
[08:24:39.733][NamedPipeServer][Info ] Version done in 00:00:00.
[08:24:40.010][GUI ][Error ] Unable to create an instance of Docker.Actions: Unable to create an instance of Docker.WPF.WelcomeWindow
[08:24:46.510][ErrorReportWindow][Info ] Open logs

friism commented May 17, 2017

Can you try the latest 17.05 edge installer?

It would also be good to have more details on your environment, eg. whether you’re running Docker for Windows in a VM or such.

mitchellmaler commented May 17, 2017

I installed Version: 17.05.0-ce-win11 (12053) and I am still getting the same error when it starts up.

Version: 17.05.0-ce-win11 (12053)
Channel: edge
Sha1: ffbc5f5871f44611dfb2bbf49e8312332531c112
Started on: 2017/05/17 10:17:45.746
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows 10 Enterprise
Edition: Enterprise
Id: 1607
Build: 14393
BuildLabName: 14393.1198.amd64fre.rs1_release_sec.170427-1353
File: C:\Users\MM025313\AppData\Local\Docker\log.txt
CommandLine: «C:\Program Files\Docker\Docker\Docker for Windows.exe»
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[10:17:45.859][GUI ][Info ] Starting.
[10:17:46.228][Tracking ][Info ] Crash report and usage statistics are enabled
[10:17:46.233][SegmentApi ][Info ] Usage statistic: appLaunched
[10:17:46.371][NamedPipeClient][Info ] Sending Version().
[10:17:46.375][NamedPipeClient][Info ] Received response for Version
[10:17:46.375][SegmentApi ][Info ] Usage statistic: heartbeat
[10:17:46.373][NamedPipeServer][Info ] Version done in 00:00:00.
[10:17:46.645][GUI ][Error ] Unable to create an instance of Docker.Actions: Unable to create an instance of Docker.WPF.WelcomeWindow
[10:17:46.657][CrashReport ][Info ] Preparing package to send with the diagnostics
[10:17:46.661][NamedPipeClient][Info ] Sending DownloadVpnKitLogs(C:\Users\MM025313\AppData\Local\Temp\vkgxrwpw.avw\pcap.tar).
[10:17:46.661][NamedPipeClient][Info ] Sending DownloadVmLogs(C:\Users\MM025313\AppData\Local\Temp\vkgxrwpw.avw\mobyLogs.tar).
[10:17:46.661][NamedPipeClient][Info ] Sending DownloadWinContainersDebugInfo(C:\Users\MM025313\AppData\Local\Temp\vkgxrwpw.avw\win_containers).
[10:17:46.662][NamedPipeClient][Info ] Sending GetDebugInfo().
[10:17:46.662][NamedPipeServer][Info ] DownloadVpnKitLogs(C:\Users\MM025313\AppData\Local\Temp\vkgxrwpw.avw\pcap.tar)
[10:17:46.662][NamedPipeServer][Info ] DownloadWinContainersDebugInfo(C:\Users\MM025313\AppData\Local\Temp\vkgxrwpw.avw\win_containers)
[10:17:46.671][NamedPipeClient][Info ] Received response for DownloadVpnKitLogs
[10:17:46.663][VpnKit ][Warning] Unable to download logs: The operation has timed out.
[10:17:46.685][NamedPipeClient][Info ] Received response for DownloadVmLogs
[10:17:46.663][NamedPipeServer][Info ] DownloadVpnKitLogs done in 00:00:00.0009998.
[10:17:46.664][NamedPipeServer][Info ] DownloadVmLogs(C:\Users\MM025313\AppData\Local\Temp\vkgxrwpw.avw\mobyLogs.tar)
[10:17:46.664][PowerShell ][Info ] Run script ‘(Get-VM MobyLinuxVM).Id.Guid’.
[10:17:46.669][NamedPipeServer][Info ] GetDebugInfo()
[10:17:46.685][HyperV ][Warning] Unable to download logs: Unrecognized Guid format.
[10:17:46.685][NamedPipeServer][Info ] DownloadVmLogs done in 00:00:00.0210094.
[10:17:48.208][ErrorReportWindow][Info ] Open logs
[10:17:57.675][NamedPipeClient][Info ] Received response for DownloadWinContainersDebugInfo
[10:17:57.675][NamedPipeServer][Info ] DownloadWinContainersDebugInfo done in 00:00:11.0131989.
[10:18:16.489][NamedPipeServer][Info ] GetDebugInfo done in 00:00:29.8203262.
[10:18:16.497][NamedPipeClient][Info ] Received response for GetDebugInfo
[10:18:17.352][CrashReport ][Info ] Uploading diagnostics.
[10:18:18.664][CrashReport ][Info ] Diagnostics successfully uploaded (8B19227C-B3B8-48C8-898A-F7C45E6F228E/2017-05-17_10-17-46)
[10:18:18.676][GUI ][Info ] Sending Bugsnag report 71b1f766-9edf-404c-beba-fc835e34e7ad.
[10:18:19.642][GUI ][Info ] Bugsnag report 71b1f766-9edf-404c-beba-fc835e34e7ad sent

My host OS is Windows 10 Enterprise and I am trying to run docker on that so no virtual machine. I made sure Hyper-V is enabled in the features.
Windows version: 1607
OS Build: 14393.1198
Dell Precision 5510
Processor: i7-6820HQ CPU @ 2.70GHz
RAM: 32GB.

The installer doesn’t fail but when I run Docker for Windows I am getting that error. I can run the CLI in powershell but it cannot connect to the daemon since it wont start up.

valorisdev commented May 22, 2017 •

I have exactly the same problem

Shell client error

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.29/containers/json?all=1: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevted to connect. This error may also indicate that the docker daemon is not running.

Config

Docker does not work after installation #12545

Comments

Thomas61197 commented Feb 11, 2022 •

Actual behavior

When open the app it says docker stopped working.
setting page doesn’t load.
Running the following from cmd gets me:
d:\Users\ThomasBoer\big_data>docker pull mtasnim/jupyter-pyspark-duckdb
Using default tag: latest
error during connect: This error may indicate that the docker daemon is not running.: Post «http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/create?fromImage=mtasnim%2Fjupyter-pyspark-duckdb&tag=latest»: open //./pipe/docker_engine: The system cannot find the file specified.

Getting this on startup after installing docker for some reason:
startup_docker.txt

This error may indicate that the docker daemon is not running windows. Смотреть фото This error may indicate that the docker daemon is not running windows. Смотреть картинку This error may indicate that the docker daemon is not running windows. Картинка про This error may indicate that the docker daemon is not running windows. Фото This error may indicate that the docker daemon is not running windows

This error may indicate that the docker daemon is not running windows. Смотреть фото This error may indicate that the docker daemon is not running windows. Смотреть картинку This error may indicate that the docker daemon is not running windows. Картинка про This error may indicate that the docker daemon is not running windows. Фото This error may indicate that the docker daemon is not running windows

Expected behavior

It working as it should.

Information

Windows Version:
Edition Windows 10 Home
Version 21H1
Installed on ‎9/‎28/‎2020
OS build 19043.1526
Experience Windows Feature Experience Pack 120.2212.4170.0

Docker Desktop Version:
d:\Users\ThomasBoer\big_data>docker version
error during connect: This error may indicate that the docker daemon is not running.: Get «http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version»: open //./pipe/docker_engine: The system cannot find the file specified.
Client:
Cloud integration: v1.0.22
Version: 20.10.12
API version: 1.41
Go version: go1.16.12
Git commit: e91ed57
Built: Mon Dec 13 11:44:07 2021
OS/Arch: windows/amd64
Context: default
Experimental: true

WSL2 or Hyper-V backend? WSL2

Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No

Output of & «C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe» check

diagnostics ID:
538D3065-88EA-4B67-99F2-547648A8D2C2/20220211132529

Steps to reproduce the behavior

The text was updated successfully, but these errors were encountered:

Источники информации:

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *