Cannot connect to the Docker daemon

The Docker CLI is installed and reachable, but the background engine it talks to isn't running.

Common causes

  • Docker Desktop isn't open (macOS/Windows)
  • The docker service isn't running (Linux)
  • Docker just restarted and hasn't finished starting up yet

Diagnostic commands

bash
$ docker info

Solutions

  • macOS/Windows: open Docker Desktop and wait for it to report "running"
  • Linux: start the service with `sudo systemctl start docker`
  • Confirm with `docker run hello-world` once it's up

Related tutorials