Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker for windows will not start

I have installed Docker for windows as a complete noob looking to try it out. I have ensured Hyper-V is enable, virtualisation is enabled also

any time I try and run the docker desktop the whale icon is red and it states that it could not start, and if I try to run a command like from cmd I get teh following error

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

I am at a loss as to how I can trouble shoot.

I have also noticed that the STATE when i list my WSL devices is always set as "Installing" even if I completely uninstall Docker through Add/Remove programs

enter image description here

like image 280
Kevin Bradshaw Avatar asked Jun 14 '20 20:06

Kevin Bradshaw


2 Answers

Literally do as it says: launch Docker as admin.

Quit Docker, and ensure it is no longer running. You should be able to see if its running in the system tray. Right click -> Quit Docker Desktop

enter image description here

It may take a few seconds for it to stop. Wait for the windows notification: enter image description here

Navigate to the installation directory, which for me was defaulted to C:\Program Files\Docker\Docker. Launch Docker Desktop.exe as admin

enter image description here

This will open the Docker UI. Wait for Docker to fully start up before attempting to consume its services

like image 64
Luke Avatar answered Sep 18 '22 14:09

Luke


I have had similar error and solved as follow;

  1. In cmd, on admin mode run below command:

    docker-machine restart default

if you see anything like: it is not exist then run: docker-machine create

  1. Then you'll get a message something like:

open C:\User\{User_name}\.docker\machine\machines\default\config.json: The system cannot find the file specified.

  1. Go to the docker icon which will be on your windows tray (bottom right corner of the desktop)

  2. Right click on the docker icon > Settings > Reset > Restart Docker

This solution worked for me. And reference for this answer: docker cannot start on windows

like image 36
Sercan Avatar answered Sep 16 '22 14:09

Sercan