Issue
I am trying use redis on docker, so ı am using this code on cmd:
docker run -p 6379:6379 --name some-redis -d redis
and ı got this exception:
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?name=some-redis": open //./pipe/docker_engine: The system cannot find the file specified.See 'docker run --help'.
What should ı do for use redis on docker?
Solution
Please make sure the 'Docker Desktop' is running.
If not, open it and wait a moment for Docker daemon starting.
If problem still exists, try launch CMD as admin, and execute this:
"C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon
Answered By - Lawrence Li
Answer Checked By - Marilyn (JavaFixing Volunteer)