Docker: ca.pem not found

Here I create a test machine (dev) using a docker machine.

$ docker-machine create -d virtualbox dev
Creating CA: C:\Users\xxx\.docker\machine\certs\ca.pem
Creating client certificate: C:\Users\xxx\.docker\machine\certs\cert.pem
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM...

vm is created and works with flaws. And here is the error when I run the following command:

$ docker-machine env dev

open C:\Users\xxx\.docker\machine\machines\dev\ca.pem: The system cannot fin
d the file specified.

I do not know how to deal with this problem. Trial restart of boot2docker.

+4
source share
4 answers

You should try to use docker-machine regenerate-certs dev. The problem, I think, is that somehow your .pem file was deleted or not created. I had the same problem and certificate recovery fixed the problem (rebooting did not help btw).

+5
source

. Cisco AnyConnect, . , AnyConnect, , .

- , AnyConnect , , , !

+3

"C:\Users\xxx \.docker\machine\certs"

"C:\Users\xxx \.docker\machine\machines\dev"

+1

, Docker-: ca.pem , docker info docker

: docker-machine env -u :

unset DOCKER_TLS_VERIFY

unset DOCKER_HOST

unset DOCKER_CERT_PATH

unset DOCKER_MACHINE_NAME

# :

# eval $(docker-machine env -u)

eval $(docker-machine env -u)

. , , docker info.

0
source

Source: https://habr.com/ru/post/1599076/


All Articles