gpt4 book ai didi

windows - Docker 群管理器挂起状态

转载 作者:可可西里 更新时间:2023-11-01 10:14:22 25 4
gpt4 key购买 nike

我有 2 个启用了容器服务的 Windows 2016 服务器。我在两台机器上都安装了 docker。
现在我正在尝试安装 docker cluster swarm 模式。但是运行时:

docker swarm init --advertise-addr 192.168.233.131 > test.txt

它卡住了,不显示任何输出。

当我运行 docker info 时,它显示

Swarm: pending ( manager node).  

请帮我解决。我错过了什么?

Containers: 6  Running: 0  Paused: 0  Stopped: 6 Images: 5 Server
Version: 17.03.0-ee-1 Storage Driver: windowsfilter Windows: Logging
Driver: json-file Plugins: Volume: local Network: l2bridge l2tunnel
nat null overlay transparent Swarm: pending NodeID: l0cavlw31jzh4xbg34gqkubah Is Manager: true ClusterID:
bi188mb7kcd0ct87c1ia1xha3 Managers: 1 Nodes: 1 Orchestration:
Task History Retention Limit: 5 Raft: Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0 Heartbeat Tick: 1 Election
Tick: 3 Dispatcher: Heartbeat Period: 5 seconds CA Configuration:
Expiry Duration: 3 months Node Address: 192.168.233.131 Manager
Addresses:
0.0.0.0:2377 Default Isolation: process Kernel Version: 10.0 14393 (14393.1480.amd64fre.rs1_release.170706-2004) Operating System:
Windows Server 2016 Standard OSType: windows Architecture: x86_64
CPUs: 1 Total Memory: 1.999 GiB Name: WIN-NGCG1EF8Q2E ID:
EAT6:KLZD:BQAY:TXGV:4LR4:POTH:3VSJ:OEQO:TBAN:L322:QFNC:4V3J Docker
Root Dir: C:\ProgramData\docker Debug Mode (client): false Debug Mode
(server): false Registry: https://index.docker.io/v1/ Experimental:
false Insecure Registries:
127.0.0.0/8 Live Restore Enabled: false

最佳答案

C:\> docker swarm init --advertise-addr=HOSTIPADDRESS --listen-addr HOSTIPADDRESS:2377

我输入了上面的命令格式,谢谢@Tarun Lalwani

关于windows - Docker 群管理器挂起状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45528819/

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