Error during connect when installing docker in Windows 10

The detailed error information is as follows:

C:\Users\zig>docker info
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/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.

Modification method:

cd "C:\Program Files\Docker\Docker"
./DockerCli.exe -SwitchDaemon

Why: especially on windows machine when you see the above error after a docker update, try the above commands. It appears like the docker desktop UI may indicate that you are already using Linux containers, but the update may have messed up that setting. Running the above commands will set to Linux Containers and there after you can work happily.

By default, Linux containers is used. After using this command, just change it to windows containers.

Read More: