gpt4 book ai didi

docker - 无法从待定状态恢复Docker群

转载 作者:行者123 更新时间:2023-12-02 18:39:43 26 4
gpt4 key购买 nike

发生崩溃,我现在遇到这个问题,它说 docker 群状态为待定,节点状态为UNKNOWN。这是我的docker info结果

swarm@swarm-manager-1:~$ docker info
Containers: 270
Running: 0
Paused: 0
Stopped: 270
Images: 160
Server Version: 1.12.2
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 1211
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host bridge null overlay
Swarm: pending
NodeID: d9hq8wzz6skh9pzrxzhbckm97
Is Manager: true
ClusterID: 5zgab5w50qgvvep35eqcbote2
Managers: 1
Nodes: 2
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Node Address: HIDDEN
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-91-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 6.804 GiB
Name: swarm-manager-1
ID: AXPO:VFSV:TDT3:6X7Y:QNAO:OZJN:U23R:V5S2:FU33:WUNI:CRPK:2E2C
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
127.0.0.0/8

这是我的docker node ls结果:
ID                           HOSTNAME         STATUS   AVAILABILITY  MANAGER STATUS
9tlo3rg7tuc23xzc3am28lak1 swarm-worker-1 Unknown Active
d9hq8wzz6skh9pzrxzhbckm97 * swarm-manager-1 Unknown Active Leader

我尝试过重新启动docker引擎和VM,但没有任何帮助。系统实际上正在运行,因为当我在worker中说 docker ps时,它显示了所有容器,但是在管理器上 docker ps上没有任何内容。

任何的想法?

最佳答案

以我在Swarm中的经验,解决类似问题的唯一方法是销毁该群。并且当您执行此操作时,您可能还应该执行docker system prune(仅当没有有值(value)的东西可以删除时)和service docker restart。然后建立一个新的群体。

糟透了我知道

关于docker - 无法从待定状态恢复Docker群,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46366466/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com