Cannot connect to the Docker daemon at tcp://127.0.0.1:2375. Is the docker daemon running?
Description
Diagnostics ID: 0939A605-BBA1-4ADE-AC57-0B2A9203FB24/20250316090732
Unable to start any containers, says Docker daemon is not running.
docker run hello-world
shubhamj@Shubhams-MacBook-Air ~ % docker run hello-world
docker: Cannot connect to the Docker daemon at tcp://127.0.0.1:2375. Is the docker daemon running?
Run 'docker run --help' for more information
Docker Desktop is running - still nothing works
Already Tried:
- clean uninstall and reinstall from Docker official website
- clean uninstall and reinstall using
brew --cask - running them : https://docs.docker.com/desktop/cert-revoke-solution/#mdm-script - thought i'd help
Please help!
Reproduce
docker run hello-world
Expected behavior
should run containers and produce standard output per docker guides
docker version
shubhamj@Shubhams-MacBook-Air ~ % docker version
Client:
Version: 28.0.1
API version: 1.48
Go version: go1.23.6
Git commit: 068a01e
Built: Wed Feb 26 10:38:16 2025
OS/Arch: darwin/arm64
Context: default
Cannot connect to the Docker daemon at tcp://127.0.0.1:2375. Is the docker daemon running?
docker info
shubhamj@Shubhams-MacBook-Air ~ % docker info
Client:
Version: 28.0.1
Context: default
Debug Mode: false
Plugins:
ai: Docker AI Agent - Ask Gordon (Docker Inc.)
Version: v0.9.4
Path: /Users/shubhamj/.docker/cli-plugins/docker-ai
buildx: Docker Buildx (Docker Inc.)
Version: v0.21.1-desktop.2
Path: /Users/shubhamj/.docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.33.1-desktop.1
Path: /Users/shubhamj/.docker/cli-plugins/docker-compose
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.38
Path: /Users/shubhamj/.docker/cli-plugins/docker-debug
desktop: Docker Desktop commands (Beta) (Docker Inc.)
Version: v0.1.5
Path: /Users/shubhamj/.docker/cli-plugins/docker-desktop
dev: Docker Dev Environments (Docker Inc.)
Version: v0.1.2
Path: /Users/shubhamj/.docker/cli-plugins/docker-dev
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.27
Path: /Users/shubhamj/.docker/cli-plugins/docker-extension
feedback: Provide feedback, right in your terminal! (Docker Inc.)
Version: v1.0.5
Path: /Users/shubhamj/.docker/cli-plugins/docker-feedback
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.4.0
Path: /Users/shubhamj/.docker/cli-plugins/docker-init
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: /Users/shubhamj/.docker/cli-plugins/docker-sbom
scout: Docker Scout (Docker Inc.)
Version: v1.16.3
Path: /Users/shubhamj/.docker/cli-plugins/docker-scout
Server:
ERROR: Cannot connect to the Docker daemon at tcp://127.0.0.1:2375. Is the docker daemon running?
errors pretty printing info
Diagnostics ID
0939A605-BBA1-4ADE-AC57-0B2A9203FB24/20250316090732
Additional Info
Clean installed Docker again, help me with steps to start it.
Okay, so I am able to run docker with sudo command. I tried troubleshooting to be able to do without sudo, couldn't resolve.
using Apple M1 chip, version 15.3.2
Have you been able to resolve the error?
The same thing is happening to me and I'm desperate. Please help!
arirecaldeg@Ariana's MacBook Air ~ % docker run hello-world docker: Unable to connect to the Docker daemon at unix:///var/run/docker.sock. Is the Docker daemon running? See "docker run --help". arirecaldeg@Ariana's MacBook Air ~ %
No, couldn't find anything. using with sudo for a while now, as a work around. Let me know if you get something.
Hey @arirecaldeg
This worked for me: https://stackoverflow.com/questions/40325352/why-am-i-forced-to-run-docker-with-sudo-on-os-x