简体   繁体   English

Docker机器未连接到服务器

[英]Docker-machine not connecting to server

I am using docker to deploy my rails application on digitalcoean . 我正在使用docker将我的rails应用程序部署在digitalcoean I am now unable to connect to my server using eval $(docker-machine env my-server) command. 我现在无法使用eval $(docker-machine env my-server)命令连接到服务器。

it shows the following error 它显示以下错误

Error checking TLS connection: Error checking and/or regenerating the 
certs: There was an error validating certificates for host 
"207:322:414:35:2376": tls: DialWithDialer timed out
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 running containers.

I also tried to generates the certs by using command 我也尝试使用命令生成certs

docker-machine regenerate-certs my-server

Certs are generated successfully. Certs已成功生成。

After this when I try to connect to my server by using the following command 之后,当我尝试使用以下命令连接到服务器时

eval $(docker-machine env my-server)

I again receive the above-mentioned error. 我再次收到上述错误。

Error checking TLS connection: Error checking and/or regenerating the 
certs: There was an error validating certificates for host 
"207:322:414:35:2376": tls: DialWithDialer timed out
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 running containers.
enter code here

Please help! 请帮忙! :'( :'(

Try using the new flag --client-certs: 尝试使用新的标志--client-certs:

docker-machine regenerate-certs --client-certs [name] docker-machine regenerate-certs --client-certs [名称]

And take a look at https://github.com/docker/machine/pull/4401#issuecomment-368670971 并看看https://github.com/docker/machine/pull/4401#issuecomment-368670971

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM