Hi ,
After installing Docker desktop on my Mac ,I am getting “command not found” error whenever I am trying to run any docker command like “docker --version”
I am kind of new to Mac. I tried to check below things:
3.ls -l /usr/local/bin/docker gives this output:
lrwxr-xr-x 1 root wheel 54 May 8 15:37 /usr/local/bin/docker → /Applications/Docker.app/Contents/Resources/bin/docker
4./Applications/Docker.app/Contents/Resources/bin has a file called “docker”.
Please help me what I am missing.
Last update:
If I run this:
/Applications/Docker.app/Contents/Resources/bin/docker --version
Then it is giving result.
Docker version 19.03.8, build afacb8b
I had the same issue. I ran Docker Desktop from the Applications folder and it finalized the setup. I was a bit surprised that the installer did not complete the required installation.
I am having this issue with v20.10.5 Running Desktop Application did not resolve the issue. I did all of the same checks initial user listed above, with the same results.
Interesting, looks like somehow the settings now install docker as USER instead of SYSTEM so the executables are not included in your PATH by default. I recently moved between Macs and was caught offguard by this change.
Updated my PATH as mentioned by Zil0, but will probably just change the radio button to SYSTEM since that makes more sense to me.
After installing the docker desktop app on Mac, the “Advanced” section under the setting “System” was active but I could not run the docker command on the terminal. The fix was to change it to “User” apply and restart then change back to “System” apply and restart before the docker command started working on the terminal