Docker machine not work properly

Hi everyone,

I have installed / configured docker on windows 10. Docker host usually starts with double clicking on the Desktop icon “Docker Quickstart Terminal”. But sometimes after start, my docker doesn’t work properly. When I type command “docker-machine env default” I get the error:

$ docker-machine env default
Error running connection boilerplate: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.100:2376": dial tcp 192.168.99.100:2376: i/o timeout
You can attempt to regenerate them using 'docker-machine regenerate-certs name'.
Be advised that this will trigger a Docker daemon restart which will stop running containers.

Can somebody help me about this error?

Thank you

When a Docker machine is restarted the IP Address is invariably new and the certificates need to be regenerated. For example, regenerate the certs for the docker-machine-1 with the following docker-machine regenerate-certs command.

docker-machine regenerate-certs docker-machine-1

The certs gets regenerated.

Subsequently run the following command to set the shell configuration for docker-machine-1
eval “$(docker-machine env docker-machine-1)”