How do we start the daemon?

前端 未结 4 1370
灰色年华
灰色年华 2021-02-19 13:58

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

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.2

相关标签:
4条回答
  • 2021-02-19 14:34

    I had the same issue in windows 7. I found my issue was getting the VM working in virtual box.

    Copy the "Boot2Docker.iso" file from "C:\Program Files\Docker Toolbox" 
    into "C:\Users\<user name>\.docker\machine\cache"
    

    Then I could run the start.sh in cygwin or Gitbash.

    Note: I had to restart any cmd's for the docker to see the VM.

    0 讨论(0)
  • 2021-02-19 14:38

    Docker daemon on Windows Server run as windows service. This Docker service may not be running on your machine. Follow below steps

    1. Start->Run-> services.msc

    2. Search for service named "Docker"

    3. Start service.

    0 讨论(0)
  • 2021-02-19 14:39

    If you have installed docker on Windows 10 Pro with Hyper-V enabled and still you are not able to run Docker on Windows 10, then as the error suggests that your docker daemon is not started. Follow following steps it helped me to start docker successfully

    1. Use command on CMD(Admin mode) docker-machine restart default then you will get msg like "open C:\User{User_name}.docker\machine\machines\default\config.json: The system cannot find the file specified."
      Go to the docker icon which will be on your windows tray(Right corner of the desktop). Then Right click on the docker icon -> setting-> Reset -> Restart Docker It will take few moments then you will see the message "Docker is running with the green indicator".
      Note- If you have already had running Docker containers running on your system then don't follow these steps. You may lose the exiting containers.
    0 讨论(0)
  • 2021-02-19 14:39

    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.

    0 讨论(0)
提交回复
热议问题