Useful or not, from you.
for-win unable to resolve docker endpoint: open C:\Users\username\.docker\machine\machines\default\ca.pem: The system cannot find the path specified.

<!-- Please, check Issues without logs and details cannot be debugged, and will be closed.

Issues unrelated to Docker Desktop will be closed. In particular, see

  • for Docker daemon, e.g. running on Windows Server with Docker EE
  • for docker-compose
  • for docker-machine
  • for the documentation -->

<!-- Click these checkboxes after submitting. --> <!-- Download Docker Desktop 'Edge' (latest build) here: -->

  • [X] I have tried with the latest version of my channel (Stable or Edge)
  • [ ] I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

By typing: docker --version it should show the version. The truth is that I can not do anything

Actual behavior

As soon as I type "docker" on the command prompt ans press "Enter" the following message is displayed:

unable to resolve docker endpoint: open C:\Users\Username.docker\machine\machines\default\ca.pem: The system cannot find the path specified.

I looked into that path and the ca.pem file doesn't exist.


<!-- Please, help us understand the problem. For instance:

  • Is it reproducible? Yes, it doesn't let me do anything.
  • Is the problem new? Yes, I used docker two weeks about two or three weeks ago and the issue didn't happen. Just today.
  • Did the problem appear with an update? I didn't make any update today. Probably I did it last time when I finished working, because it is up-to-date.
  • A reproducible case if this is a bug, Dockerfiles with reproduction inside is best. -->
  • Windows Version: 10
  • Docker Desktop Version: (45519)
  • Channel: stable
  • Composer: 1.25.5
  • Engine: 19.03.8
  • Are you running inside a virtualized Windows e.g. on a cloud server or on a mac VM:

Steps to reproduce the behavior

<!-- A reproducible case, Dockerfiles with reproduction inside is best. -->

  1. For the issue to happen I don't need any Dockerfile.
  2. I go to the command prompt.
  3. Type: docker --version, and the issue will occur right away.

Troubleshooting Steps I tried: Uninstall docker for Desktop and installed it again. I was hoping it would install the certificate, ca.pem, but it didn't happen.

That's a useful answer
Without any help

Another case for the same error: PC Information: Win10 home 2004, os 19041.264 wsl2 (ubuntu, with version 18.xx.xx installed). docker works fine in wsl2.

Actual behavior Install 'Docker Desktop Installer (for win10 home) Version, stable channel'. Then type 'docker' in cmd.exe PS C:\Users\fjt\getting-started> docker version unable to resolve docker endpoint: open C:\Users\fjt.docker\machine\machines\default\ca.pem: The system cannot find the path specified.

in wsl2: 'docker version' runs fine. and it report version is '18.xx.xx'. The original output is missing.

Solution Remove '' in wsl2. Then reinstall 'Docker Desktop Installer (win10 home)' in Win10

Note The direcotry 'C:\Users\fjt\.docker\machine' doesn't exits. So I delete the windows environment variables: DOCKER_CERT_PATH DOCKER_MACHINE_NAME, DOCKER_TLS_VERIFY. And docker runs ok: C:\Users\fjt\getting-started>docker build -t docker101tutorial . Sending build context to Docker daemon 10.2MB Step 1/21 : FROM python:alpine AS base alpine: Pulling from library/python df20fa9351a1: Pull complete ... Status: Downloaded newer image for python:alpine