1

I have been struggling with the issue of "docker" command not being recognized in Windows cmd. I have docker installed on Windows Pro, and it is running ok, but the "docker" command is not recognized though the PATH variable contain the location of the docker binaries.

Any ideas on this, please? I have been looking everywhere, but could not find a solution!

Thanks.

2 Answers 2

6

I encontered the same problem. In my case (linux) it was because of broken installations. I've ran sudo apt --fix-broken install && sudo apt install docker-ce docker-ce-cli containerd.io

Sign up to request clarification or add additional context in comments.

Comments

0

(Windows): I did not use my PC for a year, and got the same error after running docker --version. I just upgraded to the latest docker version, and issue resolved.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.