首页 > 解决方案 > 设置活动主机时的权限问题

问题描述

我正在设置活动主机并让 Docker 客户端指向它:

docker-machine env [instance name]

这给了我输出:

Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host. You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'

当我尝试重新生成证书时,我从调试日志中得到了这个:fork/exec /usr/bin/ssh: permission denied

更改目录的权限设置没有帮助。我该如何解决它?

标签: amazon-web-servicesdockerdocker-machine

解决方案


在这里找到解决方案https://www.digitalocean.com/community/questions/ssh-not-available-when-creating-docker-machine-through-digitalocean

问题是快速运行 Docker(Ubuntu 的 repo),而不是 Docker 的官方构建。一旦我卸载了 Docker snap 并安装了官方构建 SSH 问题就消失了。


推荐阅读