If docker is not running on your device you will see errors like below,
% docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
Is the docker daemon running?
If you are a developer and frequently use the Terminal commands to work with Docker and wonder how to start or open it command line then you can make use of the open command,
Command:$ open -a docker
When you will run this command in Terminal shell, you will see that the docker desktop application is loaded and will get started and then you can run all the subsequent docker commands.

Starting docker using terminal command
More Posts related to MacOS,
- Add Line Break in Microsoft Excel Cell on Mac (macOS)
- How to view the desktop when using macOS Stage Manager?
- Mac - How to Install VirtualBox
- Must Know Homebrew Commands for Mac/Linux Users
- Show Desktop Keyboard Shortcut on Mac
- Check Reboot History Mac
- How to set Out Of Office (OOO) on Outlook for Mac
- How to Screenshot on Mac Ventura 13 - Step by Step Guide
- How to install maven in macOS using Terminal Command
- How to change macOS Safari default language
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- Permanently Set or Change $JAVA_HOME on Mac (macOS)
- Two Ways to Extract rar (*.rar) files on Mac
- How to change Ping TTL value on macOS
- How to upgrade Docker Desktop on Mac
- [fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- Installing brew on M1/M2 ARM Mac
- How to increase macOS Terminal text font size (Big Sur)
- How to open new tab in Sublime Text Editor [macOS]
- macOS: Change Weather App Temperature unit from Fahrenheit to Degree
- Clear SFTP Prompt Screen on macOS Terminal
- How to install homebrew (brew) on M1 Mac
- [Fix] brew: command not found Mac or Linux Terminal Error
- How to download and install macOS 13 Ventura
- How to install Zoom Add-in to Outlook (Mac)
More Posts:
- The Zsh Shell - Mac Tutorial - MacOS
- DDMS files not found hprof-conv.exe - Android
- How to kill tomcat server process using Mac Terminal Command - Tomcat
- [fix] Docker: OCI runtime exec failed unable to start container process - Docker
- How to install and Configure sar sysstat tools in Ubuntu Linux - Linux
- How to use SCP Command to Copy Directory - Linux
- How to go to the End of File in Nano Editor - Linux
- How to Cut Copy and Paste in Nano Text Editor - Linux