error during connect: This error may indicate that the docker daemon is not running.: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json?all=1: open //./pipe/docker_engine: The system cannot find the file specified. code example
Example 1: docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create": open //./pipe/docker_engine:
cd "C:\Program Files\Docker\Docker"
./DockerCli.exe -SwitchDaemon
// in Powershell elevated access solved my issue
Example 2: error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/images/json:
docker-machine env --shell cmd default