ddev start stops because DDEV cannot reach a Docker provider
Your error
Could not connect to a Docker provider. Please start or install a Docker provider.3 more lines it can showFix it fast
Most common cause, 1 of 4No Docker provider is running, or none is installed
On macOS or Windows, launch your provider from the applications menu and give it time to finish starting.
# Linux / WSL2
sudo systemctl enable --now dockerShort answer
Could not connect to a Docker provider (DDEV 1.24 and older) or Could not connect to Docker (DDEV 1.25) means DDEV got no answer from a Docker daemon. Start OrbStack, Docker Desktop or the Linux docker service, join the docker group instead of using sudo, pick the right context with docker context use and clear a stray DOCKER_HOST.
Which cause do you have?
Ask the plain docker client the same question DDEV asks. The reply of docker ps, together with the context list, separates the four causes below.
docker ps
docker context ls
env | grep -E '^DOCKER_(HOST|CONTEXT)='Then find the line you see in this list and open its fix:
- 1No Docker provider is running, or none is installed
docker ps answers Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? - 2Your Linux user is not in the docker group, so sudo looks like the way out
docker ps says permission denied while trying to connect to the docker API, and sudo ddev start is refused with the root privileges message - 3The Docker client is pointed at another provider's context
docker ps fails with unable to resolve docker endpoint: context "docker-desktop": context not found, or a context in docker context ls belongs to a provider you removed - 4DOCKER_HOST or DOCKER_CONTEXT in your shell overrides the context
The env check in the first step prints a DOCKER_HOST or DOCKER_CONTEXT line, for example an address such as tcp://host:2375 that no longer answers
What does the error look like?
Could not connect to a Docker provider. Please start or install a Docker provider.Could not connect to Docker. Please ensure Docker is installed and running.DDEV is not designed to be run with root privileges, please run as normal user and without sudopermission denied while trying to connect to the docker API at unix:///var/run/docker.sock
Cause 1 of 4
No Docker provider is running, or none is installed
You seedocker ps answers Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Check
DDEV's Could not connect message with a docker ps that cannot reach the daemon means the provider itself is down or missing. DDEV's Docker troubleshooting notes say this reply often means Docker is not installed or its daemon has not started, and that DDEV needs a provider such as OrbStack, Docker Desktop, Rancher Desktop or Docker Engine first.
docker version
systemctl is-active docker # Linux and WSL2 onlyFix
On macOS or Windows, launch your provider from the applications menu and give it time to finish starting. On Linux or WSL2, start the Docker service and enable it for later boots.
# Linux / WSL2
sudo systemctl enable --now dockerVerify
docker ps prints a table header, and ddev start gets past the Docker check.
docker ps
ddev startConfirmed by docs.ddev.com
Cause 2 of 4
Your Linux user is not in the docker group, so sudo looks like the way out
You seedocker ps says permission denied while trying to connect to the docker API, and sudo ddev start is refused with the root privileges message
Check
A DDEV connection error paired with permission denied on /var/run/docker.sock means the daemon runs but your account may not use its socket. DDEV's docs name group membership as the reason, and DDEV's own code exits when it runs as root, so sudo is not an option.
id -nG | tr ' ' '\n' | grep -x docker || echo 'not in the docker group'Fix
Add your account to the docker group, then open a shell that has the new group. sg docker gives you one at once; logging out and back in applies it to the whole session (in WSL2, open a new terminal).
sudo groupadd -f docker && sudo usermod -aG docker "$USER"
sg dockerVerify
As your normal user, without sudo, both commands work.
docker run hello-world
ddev startConfirmed by docs.ddev.com
Cause 3 of 4
The Docker client is pointed at another provider's context
You seedocker ps fails with unable to resolve docker endpoint: context "docker-desktop": context not found, or a context in docker context ls belongs to a provider you removed
Check
DDEV failing right after a switch between Docker providers points to a stale Docker context, the setting that tells the client which daemon to call. DDEV's docs list context-not-found and error during connect replies as context problems, and note that Colima switches to its own context when it starts.
docker context showFix
Select the context of the provider you actually run. default is the local socket; Colima and some other providers create a context under their own name.
docker context ls
docker context use defaultVerify
docker context show prints the context you picked, and docker ps answers without an error.
docker context show
docker psConfirmed by docs.ddev.com
Cause 4 of 4
DOCKER_HOST or DOCKER_CONTEXT in your shell overrides the context
You seeThe env check in the first step prints a DOCKER_HOST or DOCKER_CONTEXT line, for example an address such as tcp://host:2375 that no longer answers
Check
DDEV cannot connect when an environment variable sends the client to an address with no daemon behind it. Docker's context docs say DOCKER_HOST and DOCKER_CONTEXT win over the context chosen with docker context use, and DDEV's troubleshooting page tells you to look for them in ~/.bashrc and ~/.zshrc.
grep -n -E 'DOCKER_(HOST|CONTEXT)' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/nullFix
Remove the export lines from your shell profile, then clear the variables in the current shell.
unset DOCKER_HOST DOCKER_CONTEXTVerify
A new terminal shows no DOCKER_ variables, and ddev start runs.
env | grep '^DOCKER_' || echo 'none set'
ddev startConfirmed by docs.docker.com
How do I stop it coming back?
- Keep a single Docker provider running on a machine, and run docker context show after installing or removing one.
- Set up the docker group once on Linux and never prefix ddev with sudo.
- Leave DOCKER_HOST out of shell profiles; pass it on the command line for the rare remote engine.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.
Which stack is behind this page?
Projects of mine on the same stack: TaxiDex, Dispatch Pro.