Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do we start the daemon?

Tags:

docker

windows

Running docker info from an elevated PowerShell prompt shows this error:

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.27/info: 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. (Emphasis added)

How do we run the Docker daemon from the command line? If that is not possible, how do we run it without restarting Windows? If that is not possible, how do we start it at all?

Environment info

C:\> docker --version          
Docker version 17.03.1-ce, build c6d412e      

C:\> docker-compose --version  
docker-compose version 1.11.2, build f963d76f                                          

C:\> docker-machine --version  
docker-machine.exe version 0.10.0, build 76ed2a6                                       

What we have tried

Running docker daemon. It responds as follows:

Command "daemon" is deprecated, and will be removed in Docker 1.16. Please run dockerd directly. exec: "dockerd": executable file not found in %PATH%

Enabling Hyper-V and restarting the computer.

like image 519
Shaun Luttin Avatar asked May 24 '17 22:05

Shaun Luttin


People also ask

How do you start a daemon?

To start a daemon, if it is in the bin folder, then you could, for example, run sudo ./feeder -d 3 from the bin folder. hi, I have tested or used kill/killall to kill one deamon. But in a moment, the deamon will automatically restart(using bin/status, the status of the daemon is running).

How do I start daemon in Ubuntu?

Please note that the pidfile is also written after the chroot. -d, --chdir path Chdir to path before starting the process. This is done after the chroot if the -r|--chroot option is set. When not specified, start-stop-daemon will chdir to the root directory before starting the process.


1 Answers

If you're using Docker for Windows, Then simply start the desktop app installed in C:\Program Files\Docker\Docker\Docker Desktop.exe

You can also stop Docker for Windows and run just the Docker daemon dockerd.exe. That'll only let you run Docker Windows Containers. dockerd.exe is in the program files directory.

like image 110
friism Avatar answered Oct 07 '22 09:10

friism