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 code example

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