How to Resolve errors post installing Docker on Windows

Tutorial 27 - Selenium 4 Grid With Docker: How to Resolve errors post installing Docker on Windows

Open the command prompt and execute ‘where docker’ command. This would display the​​ path of docker.exe

cd to bin directory and execute ‘docker’ command. You might see the error as shown below

Change directory to​​ C:\Users\DELL\.docker\machine\certs​​ as shown below (in your machine the path might be different)

Notice the certificates in​​ the above folder location.​​ 

Copy this path and create new environment variable DOCKER_CERT_PATH and paste the above path as its value

Click Ok

Click OK

Click OK to close the environment variables window.

Open command prompt, type ‘docker’ command. Now​​ we don’t see the certificates related error, see below

Execute ‘docker version’ command. You might see another error as shown below

You might get this error if you would have installed ‘docker toolbox’ in the past (in Windows10 home machine). The reason being, ‘docker toolbox’ is now deprecated for windows10 home machine.​​ 

To resolve this error, remove below 4 entries from environment variables

Once removed, open a new command window and execute ‘docker version’ command. See below

Now we are seeing​​ client and server details. Docker client talks to docker server for executing various tasks.​​ 

Note: If you still don’t see the above details, restart your machine and retry

Other problems you might face during docker setup on Windows and their probable solutions

If you try to execute ‘docker version’ command​​ immediately​​ after restarting your computer. You might get the below error. The reason being docker engine hasn’t yet started​​ 

To resolve this error, click docker desktop icon to start docker, below​​ notification should be seen in the computer’s tray

Wait for few minutes till the time docker image gets stabilized

Open a new command prompt and execute ‘docker version’. You should now see client and server

Also Check:​​ Selenium Online Training

You can also restart docker by right clicking the docker icon >restart docker

Or search for ‘Services’ as shown below

Select below service and click restart

Open a new command prompt and execute​​ docker info​​ command (gives detailed info about images and containers)



Execute​​ docker --help​​ command that shows the list of commands available for docker

If these commands are working fine, than it means docker is up and running in your windows OS.

Thank you for reading!!!

Also Check:​​ Selenium Tutorials

Share On

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp
Share on tumblr
Share on email

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top

Lifetime Membership Club

LIFETIME MEMBERSHIP BIG SALE - ALL LIVE COURES JUST - 10000 RS/149 USD
Attend All Live courses in just 10000 rs / $149 - offer ends 31st May 2024