Docker Community Forums

Share and learn in the Docker community.

In Windows server 2016 the docker client must be run with elevated privileges error throwing

Expected behavior

Actual behavior

error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privil
eges to connect.: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version: open //./pipe/docker_engine: The system canno
t find the file specified.

Information

i have done the “C:\Program Files\Docker\Docker\DockerCli.exe” -SwitchDaemon in command prompt its not working

also i try the powershell command,
& ‘C:\Program Files\Docker\Docker\DockerCli.exe’ -SwitchDaemon

its also not working throghs error,

& : The term ‘C:\Program Files\Docker\Docker\DockerCli.exe’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:3
+ & ‘C:\Program Files\Docker\Docker\DockerCli.exe’ -SwitchDaemon
**+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~**
** + CategoryInfo : ObjectNotFound: (C:\Program File…r\DockerCli.exe:String) , CommandNotFoundException**
** + FullyQualifiedErrorId : CommandNotFoundException**

And i enable the Hyper-v in my VM WS2016

Please help me out