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:
- PATH variable:
/usr/local/bin /usr/bin /bin /usr/sbin /sbin:/usr/bin:/bin
2.Desktop icon is showing docker is running.
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.
If I run this:
Then it is giving result.
Docker version 19.03.8, build afacb8b