Имя docker не распознано как имя командлета
Перейти к содержимому

Имя docker не распознано как имя командлета

  • автор:

How fix Docker "command not found", "Object not found" and term "not recognised as part of cmdlet" errors

I have setup docker destop on my pc. I have run the simple "Whalesay" container to ensure everything is working. I then tried using the following pull and run command:

this comes from the "Natverse" available from docker hub at https://hub.docker.com/r/natverse/r-natverse

after what appears to be a succesful download of the container itself, I run into difficulties trying to run it, with the following error messages:

I have tried uninstalling docker desktop and reinstalling the most up-to-date version, I have restarted my computer. I have also made sure I do not have docker toolbox installed. I am neither very experienced with docker nor am I a particularly technical person. I would massively appreciate any help!

Install Docker Windows Server 2019: the term 'docker' is not recognized as the name of a cmdlet, function, script file, or operable program

Trying to install Docker in process isolation on Windows Server 2019 and following these steps. (I can’t use Hyper-V on this server) when running PowerShell in admin mode.

I however get the error

Get-PackageProvider : A parameter cannot be found that matches parameter name ‘ListAvailableget-packagesource’ enter image description here

I also tried Install-Package -Name docker -ProviderName DockerMsftProvider I then get:


I had to set the PowerShell execution policy to unrestricted like so (I’ll set it back to Restricted Set-ExecutionPolicy -ExecutionPolicy Restricted after all this):

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

I also had to temporarily disable some antivirus/malware protection from Windows Defender. For me antimalware was already disabled so I had to also disable real-time virus protection.

I then could run

Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

Now via Get-PackageProvider -ListAvailable I see that DockerMsftProvider is installed.

I ran Install-Package -Name docker -ProviderName DockerMsftProvider and entered Y .

I then run Get-Package -Name Docker -ProviderName DockerMsftProvider and get:

When I run Install-Package -Name docker -ProviderName DockerMsftProvider I get no feedback via PowerShell, no errors, so I think it’s good.

However, when I checked here and ran docker run —isolation=process mcr.microsoft.com/windows/nanoserver:1809 cmd.exe /c ping -t

I get the error

In the past I had tried to install Docker Desktop, which I then uninstalled since my VPS does not support Hyper-V. I’m not sure if this is still from that install or new, but I added path C:\Program Files\Docker to my environment PATH variable.

enter image description here

Still I get the same error

The term ‘docker’ is not recognized as the name of a cmdlet, function, script file, or operable program.


Based on @Peter Wishart’s answer I checked my PATH system variables, but Docker can be seen there (see screenshot below) and as Peter also mentioned, since I can run docker —version via the command prompt (not PowerShell) the install did complete successfully.

enter image description here

I checked ($env:path).Split(";") in PowerShell and the Docker path is there: enter image description here

Running Docker commands returns Docker is not recognized as an internal or external command

Docker command not recognized

Docker Desktop is an easy-to-install application for your Mac or Windows environment that enables you to build and share containerized applications and microservices. Docker Desktop includes Docker Engine, Docker CLI client, Docker Compose, Docker Content Trust, Kubernetes, and Credential Helper. Furthermore, Docker Desktop works with your choice of development tools and languages, giving you access to a vast library of certified images and templates in Docker Hub. This enables development teams to extend their environment to rapidly auto-build, continuously integrate, and collaborate using a secure repository.

Docker is not recognized as an internal or external command

This error resembles: The build job failed due to this error: “Preparation failed: Unable to connect—run the docker client with elevated privileges in default daemon config on Windows.” You also want to see “how to install and uninstall Docker Desktop on Windows 10 and Windows Server“.

Nevertheless, The executor uses “Docker,” but it’s not installed on the PC. Therefore, Undefined executable paths lead to Docker commands failing with the “docker is not recognized” error. Here is a link to all contents relating to Docker.

Solution – Install Docker on Windows

Similarly, Installing Docker on Windows is necessary to fix the issue of not being recognized as a command. Consequently, Please consult this comprehensive guide for a detailed walkthrough of the installation steps. See this guide on “how to install and uninstall Docker Desktop on Windows 10 and Windows Server“.

Docker command line error Docker installation issue Docker command not found

Other Suggestions:

After installing Docker, if you repeatedly face the “Docker is not recognized as an internal or external command” error. Additionally, check for a defined environment variable (system variable) for the Docker executable.

Screenshot-2021-10-05-at-19.20.59 Screenshot 2021 10 05 at 19.20.59 Screenshot-2021-10-05-at-19.21.22 Screenshot 2021 10 05 at 19.21.22

If the two recommendations above do not work, you may have to uninstall and reinstall Docker Desktop again.

I trust you found value in this blog post. Should queries arise, do share in the comments section. Unravel solutions when ‘Docker is not recognized as an internal or external command.’

Имя docker не распознано как имя командлета

Gray Pipe

This forum is now closed. Thank you for your contributions. If you need more information about where else you can find help, you can visit the resource page.

Answered by:


I setup an Azure VM w/ WS CTP3 (using the gallery). I then added the Containers feature to that VM. But I get an error when trying to run docker from the command line. Am I missing something simple? Thanks & congratulations on the big preview milestone!

Microsoft Windows [Version 10.0.10514]
(c) 2015 Microsoft Corporation. All rights reserved.

Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> docker
docker : The term ‘docker’ is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ docker

+ CategoryInfo : ObjectNotFound: (docker:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *