Docker cannot start on Windows
The error is related to that part:
In the default daemon configuration on Windows, the docker client mustbe run elevated to connect
You can do this in order to switch Docker daemon, as elevated user:
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
You can run "C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon
and point Docker CLI to either Linux or Windows containers. This worked for me.
I had the same problem.
Starting the docker daemon resolved the issue. Just search for docker pressing windows key and click on "Docker Dekstop". Daemon should be running in a minute.
After starting up Docker Desktop, make sure the docker daemon status in the bottom left is green and shows RUNNING when you hover over it.