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:
- Check whether the docker service is started locally [docker version]
- Shut down both NICs with Hyper-V in the local NIC
- If DockerDesktop for Windows is installed, it needs to be started
Finally, re-execute the script file to see the result: