The error is related to that part:
In the default daemon configuration on Windows, the docker client must
be run elevated to connect
-
First, verify that
Docker Desktop
application is running. If not, launch it: that will run the docker daemon (just wait few minutes). -
Then, if the error still persist, you can try to switch Docker daemon type, as explained below:
With Powershell:
- Open Powershell as administrator
- Launch command:
& 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
OR, with cmd:
- Open cmd as administrator
- Launch command:
"C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon