Error: You might need to start Docker for Windows. How do i start the daemon?

+2 votes

Trying to use Docker on my Windows 10 SurfaceBook 2 for the first time. In VS Code tried running:

$ ./manage start --logs 

that returns

ERROR: Couldn't connect to Docker daemon.

services shows Docker for Windows Service is running (but services disables restart option).

upgraded to the latest version of dockers for windows today 

ran:

$ docker version
Client: Docker Engine - Community
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        afacb8b
 Built:             Wed Mar 11 01:23:10 2020
 OS/Arch:           windows/amd64
 Experimental:      false
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/version: 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.

in an elevated powershell, tried instructions on https://www.edureka.co/community/51478/how-to-start-a-docker-daemon-manually, but "dockerd not recognized" was all i could see.

not sure what to do next...

^m

May 19 in DevOps & Agile by mcorning
• 140 points

recategorized May 19 by Gitika 2,696 views

1 answer to this question.

0 votes

Hi,

If you are running containers with Docker, it implies you are running the Docker daemon. This daemon currently requires privileges. To avoid this try to run with root access or set permission for that file.

$ chmod +x /var/lib/docker
answered May 19 by MD
• 56,480 points

Related Questions In DevOps & Agile

0 votes
1 answer
0 votes
2 answers

How to customize the RAM allocation on Docker for Windows?

Try this: docker update --cpu-shares 5120 -m 3000M ...READ MORE

answered Dec 6, 2018 in DevOps & Agile by Maverick
• 10,820 points
1,339 views
+1 vote
2 answers

How do I run Apache server from Docker without mapping to a location?

If you're seeing a 500 error, that's ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by lina
• 8,220 points
478 views
+3 votes
2 answers

How do I set max lifetime for Docker Container?

There is one more way which you ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by Kalgi
• 51,950 points
980 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,640 points
775 views
0 votes
1 answer

How to get the file count in amazon bucket linux cli

Hi@Shahzeb, You can do this task using the ...READ MORE

answered Apr 27 in DevOps & Agile by MD
• 56,480 points
110 views