簡體   English   中英

Docker機器未連接到服務器

[英]Docker-machine not connecting to server

我正在使用docker將我的rails應用程序部署在digitalcoean 我現在無法使用eval $(docker-machine env my-server)命令連接到服務器。

它顯示以下錯誤

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.

我也嘗試使用命令生成certs

docker-machine regenerate-certs my-server

Certs已成功生成。

之后,當我嘗試使用以下命令連接到服務器時

eval $(docker-machine env my-server)

我再次收到上述錯誤。

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

請幫忙! :'(

嘗試使用新的標志--client-certs:

docker-machine regenerate-certs --client-certs [名稱]

並看看https://github.com/docker/machine/pull/4401#issuecomment-368670971

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM