Bug: Failed to build the image locally through docker on Windows (indicate that the docker daemon is not running)

Bug:

When building the docker image locally on windows, it fails, and the error message is reported:

ERROR: error during connect: this error may indicate that the docker daemon is not running: Get “http://%2F%2F.%2Fpipe%2Fdocker_engine/_ping”: open //./pipe/docker_engine: The system cannot find the file specified.

Solution:

  1. Check whether the docker service is started locally [docker version]
  2. Shut down both NICs with Hyper-V in the local NIC
    insert image description here
    insert image description here
  3. If DockerDesktop for Windows is installed, it needs to be started

Finally, re-execute the script file to see the result:
insert image description here

Guess you like

Origin blog.csdn.net/weixin_45565886/article/details/131234125