Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I access docker from mac command line?

I am following a tutorial to learn docker and in the video the person says to access docker from the command line and then run docker ps . I tried doing that through my mac terminal and got an error saying /bin/sh: docker: not found .

Here is the code in my terminal:

Last login: Tue Aug 17 11:42:10 on ttys000 docker exec -it 41287e54390daa5016ed1f778022d05ae984ed27f62344c542d0662aee4d2230 /bin/sh nila@Nilas-MacBook-Air ~ % docker exec -it 41287e54390daa5016ed1f778022d05ae984ed27f62344c542d0662aee4d2230 /bin/sh / # docker ps /bin/sh: docker: not found

In the tutorial this is how it looks when you run docker ps: tutorial

Here is the link to the tutorial I am following: https://www.youtube.com/watch?v=gAkwW2tuIqE

like image 260
swiftyManagement101 Avatar asked Sep 18 '25 23:09

swiftyManagement101


1 Answers

If you have installed Docker Desktop and the application appears in applications, then open a new terminal window and type docker -version and you should receive output relating to the version of docker.

More information can be found on the Docker documentation,

https://docs.docker.com/desktop/mac/install/

like image 54
Shaqil Ismail Avatar answered Sep 21 '25 13:09

Shaqil Ismail