Technical questionAccepted answer
Docker command not found when running on Mac
runnerpaul
Sep 22
0 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
PermalinkSep 22
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
May 15
Run
brew doctor it'll help you to detect the error in the installation.Charlie ParkerPermalink
Apr 14
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
Apr 14
it does work just fine on the app, it seems to be running my container if I do it from there, just not from the terminal zsh on my mac m1