Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows doesn't recognize Docker command

Tags:

docker

I already installed Docker for windows. when I type docker --version command in Command prompt, it doesn't recognize it at all.

The message will be this:

'docker' is not recognized as an internal or external command, operable program or batch file. 

docker --version command in cmd

Did I miss something ?

like image 820
Mohammad Heydari Avatar asked Mar 25 '18 16:03

Mohammad Heydari


People also ask

Why is Docker not recognized?

Therefore, all docker-related commands do not work and the following error is prompted “docker is not recognized as an internal or external command”. This error is because there is no environment variable or path defined where the docker executable programs are located.

How do I run a Docker command in Windows?

To list available commands, either run docker with no parameters or execute docker help : $ docker Usage: docker [OPTIONS] COMMAND [ARG...] docker [ --help | -v | --version ] A self-sufficient runtime for containers. Options: --config string Location of client config files (default "/root/.

Why is Docker not working Windows 10?

If virtualization is disabled Docker Desktop cannot start. If the virtualization is disabled in your machine then you need to enable it from BIOS Settings. Note that Windows 10 Home edition doesn't support Hyper-V feature only Windows 10 Enterprise, Pro, or Education support it.

Where is Docker EXE located Windows?

The preferred method for configuring the Docker Engine on Windows is using a configuration file. The configuration file can be found at 'C:\ProgramData\Docker\config\daemon. json'. You can create this file if it doesn't already exist.


2 Answers

I had installed Docker 18.06.1-ce version on my Windows 10 machine and faced the similar issue, even though the docker was added the Windows %PATH%.

I moved the docker path to the bottom and that solved my problem.

enter image description here

enter image description here

like image 56
Rajesh Avatar answered Oct 12 '22 13:10

Rajesh


I restarted the system, it worked, maybe we can say that a restart is required.

like image 36
Mohammad Heydari Avatar answered Oct 12 '22 11:10

Mohammad Heydari