QuestionAccepted answer
Docker command not found when running on Mac
runnerpaul
31 Jan 2026, 16:49 UTC
60.2K views1
I'm trying to run the below code as instructed in the docker-graphite-statsd:
docker run -d\
--name graphite\
--restart=always\
-p 80:80\
-p 2003-2004:2003-2004\
-p 2023-2024:2023-2024\
-p 8125:8125/udp\
-p 8126:8126\
graphiteapp/graphite-statsd
It gives this error:
$ sudo docker run -d --name graphite --restart=always -p 80:80 -p 2003-2004:2003-2004 -p 2023-2024:2023-2024 -p 8125:8125/udp -p 8126:8126 graphiteapp/graphite-statsd
sudo: docker: command not found
This is on a Mac. I tried brew install docker but it made no difference.
How do I resolve this?
1 answer
Accepted answer · original discussion
dataplumber
Permalink01 Feb 2026, 21:37 UTC
Run brew list which will show a list of all your installed Homebrew packages.
But it's highly recommended to install docker using below link on your mac :
3 question comments
Use comments to ask for clarification. Post a solution as an answer.
mat_veePermalink
03 Feb 2026, 02:25 UTC
Run
brew doctor it'll help you to detect the error in the installation.Charlie ParkerPermalink
04 Feb 2026, 07:13 UTC
I installed it from the official link for my new M1 and the terminal can't find the docker command. Anyone else with this issue?
https://docs.docker.com/docker-for-mac/install/ the brew doctor didn't help.Charlie ParkerPermalink
05 Feb 2026, 12:01 UTC