docker-machine 加入 worker 失败

标签 docker

我正在尝试运行

docker-machine ssh myvm2 "docker swarm join --token SwMTKN-1-2yn45nfxrrw2lnmpipxgq3p9c1xj11Svt5931xz166m3tqj6cv-61uwpwyg9u3segs8slt5p466l 192.168.161.163:2376"

将 mymv2 作为工作人员加入集群,但出现此错误
Error response from daemon: rpc error: code = Unavailable desc = all Subconns are in TransientFailure,
latest connection error: connection error: desc = "transport: authentication handshake failed: remote error: tls: bad certificate"
exit status 1

对不起,我该如何解决这个错误?

最佳答案

在创建 swarm 时将 --advertise-addr 中的端口更改为 2377,并加入使用相同端口的其他管理器和工作人员来解决此问题。

关于docker-machine 加入 worker 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52400152/

相关文章:

docker - Jenkins 管道/docker :Jenkins does not seem to be running inside a container

docker - 如何在 Google Container Registry 中删除推送的镜像

django - 在Django应用上使用Gunicorn进行Nginx重定向无法正常工作

docker - 使用 Docker 时将 Celery 连接到 Redis 时出错

git - 为什么 SSH 需要一个无密码 key 的密码?

angular - 在Docker中部署Spring Boot和Angular应用时出现CORS错误

docker - gcloud构建提交不更新文件

php - 在 Docker for Mac 上使用 SSH 隧道的 Xdebug

docker - 如何正确清理docker devicemapper文件夹?

docker - Docker配置中的Docker