我刚刚第一次安装 docker,当默认的 virtualbox 或“docker-machine”(不确定它叫什么)时,我遇到了这个错误:
这是摘录
Checking connection to Docker...
Error creating machine: Error checking the host: Error checking and/or regenerat
ing the certs: There was an error validating certificates for host "192.168.99.1
01:2376": x509: certificate has expired or is not yet valid
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]
'.
Be advised that this will trigger a Docker daemon restart which might stop runni
ng containers.
Run Code Online (Sandbox Code Playgroud)
我尝试使用该docker-machine regenerate-certs [name]命令,它似乎工作至少没有引发任何错误。只有当我尝试运行 docker 的 hello world 命令时,这才是我得到的结果。
docker: …Run Code Online (Sandbox Code Playgroud)