Today, I encountered the error during connect
problem on one of my WIN10 computers, which is really annoying.
C:\Users\Administrator>docker ps
error during connect: In the default daemon configuration on Windows,
the docker client must be run with elevated privileges to connect.:
Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json":
open //./pipe/docker_engine: The system cannot find the file specified.
The point is that the docker client must be run with elevated privileges to connect
. The docker client must be run with elevated privileges to connect.
windows: left bottom --> type here to search search cmd
--> right click on cmd --> run as administrator
Then you can enter the docker ps
command to access it normally:
PS: Many articles on the Internet say to switch to Windows Container. Personally, I don't agree with this approach, because it may cause docker search to fail to find some mirrors. Because the image is also related to the Windows or Linux environment.