Docker Community Forums

Share and learn in the Docker community.

Docker:command not found after installing Docker desktop on Mac

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:

  1. PATH variable:
    /usr/local/bin /usr/bin /bin /usr/sbin /sbin:/usr/bin:/bin

2.Desktop icon is showing docker is running. -l /usr/local/bin/docker gives this output:
lrwxr-xr-x 1 root wheel 54 May 8 15:37 /usr/local/bin/docker -> /Applications/

4./Applications/ has a file called “docker”.

Please help me what I am missing.

Last update:
If I run this:
/Applications/ --version
Then it is giving result.
Docker version 19.03.8, build afacb8b