-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Could not read CA certificate xxxx The system cannot find the file specified. #537
Comments
+1 Having the same problem with Docker Toolbox on Windows 7. After building and running a container successfully yesterday, it can't start because of this error today once the PC has restarted. |
+1 Simply running "docker version", and facing a similar issue. The CA path docker is trying to read seems odd: could not read CA certificate "C:\Users\Install\.docker\machine\machines\default \ca.pem": open C:\Users\Install.docker\machine\machines\default \ca.pem: The system cannot find the path specified. The correct path - where I can see the certs is: c:\users[myusername].docker\machine\certs\ |
Seems like setting a new environment variable like this would resolve that issue: DOCKER_CERT_PATH=c:\users\myusername.docker\machine\certs Although - now I'm stuck with the following:
|
Could not read CA certificate "/home/kc/.docker/ca.pem": open /home/kc/.docker/ca.pem: no such file or directory I followed following steps. Though step 2. should be enough for the this issue.
|
I'm facing the same issue. Any fix on Windows? Many thanks. |
So you have to begin with C:\WINDOWS\system32>docker-machine create default that will begin to create a default docker host and pull your CA files. After you create the "default" machine in HyperV, for some reason it defaults the virtual network switch to "NAT". NAT is what allows communication through the network adapter. Open HyperV right click the "default" machine and click Settings and change the network adapter settings to the "Default Switch". The Default Switch is the what automatically gives virtual machines access to the computer's network using NAT. <<<<<Once I did that the docker host came back online with a IPV4 address C:\WINDOWS\system32>docker-machine ls <<<Then in the https://docs.docker.com/toolbox/faqs/troubleshoot/#example-errors it says to regenerate-certs because of invalid certificates. C:\WINDOWS\system32>docker-machine regenerate-certs default C:\WINDOWS\system32>docker-machine restart default C:\WINDOWS\system32>docker-machine env C:\WINDOWS\system32>@for /f "tokens=*" %i IN ('docker-machine env') DO @%i C:\WINDOWS\system32>docker info C:\WINDOWS\system32>docker pull nginx <<<Now everything is working as expected after a week of searching the internet. |
docker-machine env -u
Remove-Item Env:\\DOCKER_TLS_VERIFY
Remove-Item Env:\\DOCKER_HOST
Remove-Item Env:\\DOCKER_CERT_PATH
Remove-Item Env:\\DOCKER_MACHINE_NAME
# Run this command to configure your shell:
# & "C:\Program Files\Docker\Docker\Resources\bin\docker-machine.exe" env -u | Invoke-Expression
|
I had to uninstall virtual box and remove all of the environment variables as stated in other posts. Then I reinstalled docker for windows and it started working for me. |
Docker is using the environment from the |
This issue is solved!Thanks for your help! @digikin |
I'm still having this issue with the following version. edit - following https://apilevel.wordpress.com/2017/11/23/docker-for-windows-certificate-error-solution/ fixed it for me. I had also installed "Docker For Windows" |
Hi, Error creating machine: Error in driver during machine creation: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded I'm at my wits end and think this docker toolbox is only good for throwing in the trash can. Can someone please help me troubleshoot this? |
I am also facing problem unable to resolve docker endpoint: open C:\Users\narendra.prasad.docker\machine\machines\myvm3\ca.pem: The system cannot find the path specified.
please help |
Run the command in Windows PowerShell. The command is to unset docker environment variables Or, maybe you would change the environment variable permanently:
|
docker-terminal:
the cert file is under
C:\Users\admin.docker\machine\certs (seems old toolbox's files)
and
C:\Users\admin.docker\machine\ (latest installed,because create time show files are created recently)
I have to copy ca from
C:\Users\admin\.docker\machine\
toC:\Users\admin\.docker\machine\machines\default
The text was updated successfully, but these errors were encountered: