docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect. windows 10 code example

Example 1: In the default daemon configuration on Windows , the docker client must be run elevated to connect.

docker-machine env --shell cmd default

Example 2: 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

Tags:

Misc Example