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 Starting docker using terminal command](https://code2care.org/docker/open-docker-from-terminal-command-mac/images/Starting docker using terminal command.png)
Starting docker using terminal command
More Posts related to MacOS,
- Fix: grunt: command not found (Mac/Windows)
- AppleScript Example with TextEdit
- How to copy Password of Wifi on your Mac
- Install OpenJDK Java (8/11/17) versions using brew on Mac (Intel/M1/M2)
- How to check if a port is in use using terminal [Linux or macOS]
- Cut, Copy and Paste Keyboard Shortcuts on Mac Keyboard
- [macOS] NetBeans IDE cannot be installed. Java (JRE) found on your computer but JDK XX or newer is required.
- How to Remove Widgets from macOS Sonoma 14 Desktop
- Turn off Auto-Capitalization on macOS Ventura 13
- How to Go To /usr/local/bin on Mac Terminal?
- How to Open TextEdit on Mac
- Mac: How to Open Android Studio from Terminal
- How to change the default location of Mac Screenshot
- Display Seconds in Digital Clock on Mac Menu Bar [macOS]
- How to install homebrew (brew) on M1 Mac
- Must Know Homebrew Commands for Mac/Linux Users
- Steps to Uninstall Roblox on Mac (macOS)
- How to change the System Settings Sidebar icon size Mac Ventura 13
- How to set Out Of Office (OOO) on Outlook for Mac [Updated 2023]
- Trigger Notification Center Message using Mac Terminal Command
- [fix] macOS Ventura - Python3 xcrun: error: invalid active developer path missing xcrun at CommandLineTools
- How to Install Rust Language on Mac (macOS)
- How to minimize all Windows in Mac
- Display ls command file sizes in KB (kilobytes) MB (megabytes) or GB (gigabytes) [Linux/macOS]
- How to make TextEdit the default text Editor on Mac
More Posts:
- Install Node on Mac Ventura 13 - MacOS
- Correct way to Get the Current Date in Java 8 or above - Java
- How to create a dictionary comprehension in Python - Python
- Python Switch-Case Statement equivalent like Java Example - Python
- How to Check Installed Python version in Windows, Linux & macOS - Python
- ls command: sort files by name alphabetically A-Z or Z-A [Linux/Unix/macOS/Bash] - Linux
- Device not compatible error Android Google Play Store - Android
- How to install and Configure sar sysstat tools in Ubuntu Linux - Linux