Docker daemon is not running

95,682

Solution 1

Seems to be related to the below issue:

I had the same issue - I was able to resolve the issue by running power shell with Admin privs. I validated this was the same behavior for running the commands via elevated cmd prompt. It also enabled docker run hello-world command which was returning the error message ...Access is denied. 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.

here

Solution 2

Doing an combination of following two things might help :

- Exit docker from tray (lower right hand of the windows desktop)
- Relaunch it as administrator (Start Menu --> Type "Docker" --> Right Click the icon --> "Run as Administrator"

Please see if you still get the error.

Solution 3

What worked for me:: First clicking on troubleshoot and then doing reset to factory defaults. enter image description here

Warning: the existing containers will be gone

Solution 4

I did the following :

  1. In windows you can go to the show hidden icon in the taskbar, hover your cursor on the docker icon and right click then a drop down menu will be shown and from that click restart.

  2. press windows key + R

    %appdata%\Docker

    delete all the the files in the folder

  3. killed the docker process in task bar.

  4. try to open docker gui again.

  5. check out this link if none of the above works, check out this link : Docker cannot start on Windows

check link : https://bobcares.com/blog/docker-error-response-from-daemon-i-o-timeout/

  1. if nothing is work try to uninstall and reinstall the docker.

Solution 5

If you don't have any WSL installed :

  • Ensure that the Hyper-V feature enabled, you can do this by searching "Turn Windows features On or Off".
  • Using Docker desktop, disable the option to "Use the WSL 2 based engine"(which is recommended, so only use if you don't have any WSL installed).Docker desktop settings
Share:
95,682
TAMIM HAIDER
Author by

TAMIM HAIDER

Updated on July 09, 2022

Comments

  • TAMIM HAIDER
    TAMIM HAIDER almost 2 years

    Newbie in this area. I have installed the new version of Docker in my windows PC. I am using windows 10 Pro. I have tried the very basic docker command but it is not working. I have also run the docker as administrator. Getting the below error always

    docker: error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/containers/create: open //./pipe/docker_engine: Zugriff verweigert 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.

    enter image description here

    • leopal
      leopal about 5 years
      Can you see docker running in windows services?
    • error404
      error404 about 5 years
      Also if the docker is running as a service. kindly reinstall it
    • TAMIM HAIDER
      TAMIM HAIDER about 5 years
      @leopal From windows service, it is showing Doker is running.
    • TAMIM HAIDER
      TAMIM HAIDER about 5 years
      @error404 after reinstall it...same thing..nothing has changed
  • TAMIM HAIDER
    TAMIM HAIDER about 5 years
    with reset > reset a factory defaults it works properly now.
  • doamatto
    doamatto almost 4 years
    This response would not apply to Windows 10 Pro, as the original post mentions is being used.
  • Andrea
    Andrea about 3 years
    This helped me a lot! I forgot I had set up docker for working with linux subsystem, this messed up the docker installation for windows itself. Disabling the WSL2 based engine option did the trick for me.
  • nik7
    nik7 about 3 years
    While this may answer the question, it would be best if you could provide a little explanation for how to do it.
  • Čamo
    Čamo about 3 years
    My restart button is gray. Can not click on it.
  • ArdentLearner
    ArdentLearner almost 3 years
    This is not useful for the problem it's just switching between windows and linux containers.
  • Apoorv Patne
    Apoorv Patne almost 3 years
    Nothing was working for me so I uninstalled and installed again. That's when I got the error saying "sever "service needs to be enabled. Opened services with admin privileges and started it. Now docker is working fine.
  • Sagar S.
    Sagar S. almost 3 years
    Right clicking on Tray icon doesn't show 'Exit' menu. Need to go to the Task Manager and kill Docker Desktop to exit it from Tray
  • Broken_Window
    Broken_Window almost 2 years
    First I checked the Docker serivce in Services.msc is running. Then I had to kill the Docker Desktop Service process from Task manager, then relaunch Docker Desktop as administrator. It took some minutes to launch, but it is working now. My Docker version is 20.10.16 running on Windows 10 pro x64. It seems it doesn't get admin privileges when starting with the OS.