<!-- Please, check https://docs.docker.com/docker-for-windows/troubleshoot/. Issues without logs and details cannot be debugged, and will be closed.
Issues unrelated to Docker Desktop will be closed. In particular, see
<!-- Click these checkboxes after submitting. --> <!-- Download Docker Desktop 'Edge' (latest build) here: https://hub.docker.com/editions/community/docker-ce-desktop-windows -->
By typing: docker --version it should show the version. The truth is that I can not do anything
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:
<!-- A reproducible case, Dockerfiles with reproduction inside is best. -->
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.
Another case for the same error: PC Information: Win10 home 2004, os 19041.264 wsl2 (ubuntu, with docker.io version 18.xx.xx installed). docker works fine in wsl2.
Actual behavior Install 'Docker Desktop Installer (for win10 home) Version 188.8.131.52, 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 'docker.io' 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