无法离开群体模式 [英] Cannot leave swarm mode
本文介绍了无法离开群体模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在尝试新的Docker群模式。我无法完全回忆起我执行的步骤,但是现在我陷入了这样的境地:我的Docker引擎是一个不存在的集群中的工人:
I've been tinkering with new Docker swarm mode. I can't fully recall the steps that I did, but now I'm stuck in situation where my docker engine is as a worker in a non-existing swarm:
$ docker info
...
Swarm: active
NodeID: 1vndsuqa0r3paswufs7eq4po3
Is Manager: false
Node Address: 192.168.65.2
...
$ docker swarm leave
Error response from daemon: context deadline exceeded
$ docker version
Client:
Version: 1.12.0
API version: 1.24
Go version: go1.6.3
Git commit: 8eab29e
Built: Thu Jul 28 21:04:48 2016
OS/Arch: darwin/amd64
Experimental: true
Server:
Version: 1.12.0
API version: 1.24
Go version: go1.6.3
Git commit: 8eab29e
Built: Thu Jul 28 21:04:48 2016
OS/Arch: linux/amd64
Experimental: true
我如何摆脱群体模式?
推荐答案
I最终设法通过将docker从 Docker菜单>恢复为出厂默认值来解决此问题。偏好设置>卸载/重置>重置为出厂默认值
(我正在使用Docker for Mac beta版)。请注意,此操作还会滑动所有docker映像,卷,网络等。
I finally managed to fix this by resetting docker back to factory defaults from Docker menu > Preferences > Uninstall / Reset > Reset to factory defaults
(I'm using Docker for Mac beta). Note that this operation also swipes all docker images, volumes, networks, etc.
这篇关于无法离开群体模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文