Start the Docker daemon

Low risk
What do risk levels mean?
Read-only
Inspects state without changing anything.
Low risk
Reversible with a routine follow-up command.
Medium risk
Changes state; undo path documented.
Destructive
Deletes or overwrites; confirmation required.

Starts Docker when commands fail with "Cannot connect to the Docker daemon", using Docker Desktop on macOS and Windows or systemd on Linux.

dockerdaemonstartuptroubleshooting

Commands

Confirm the daemon is actually down before starting anything

docker info

Launch Docker Desktop, which starts the daemon in its VM

open -a Docker

Verification

docker info

Output includes a Server section with the engine version instead of a connection error; Docker Desktop may need a minute to finish starting.

Undo

Not undoable

Starting the daemon changes no data. To stop it again, quit Docker Desktop (macOS/Windows) or run sudo systemctl stop docker (Linux).

Pitfalls

  • On Linux, use sudo systemctl enable docker to also start the daemon on boot.
  • On Linux, docker commands without sudo require your user to be in the docker group (log out and back in after adding).
  • Containers with a restart policy of always or unless-stopped come back automatically once the daemon starts.

Related