docker swarm init在windows容器上输出什么

时间:2017-06-04 06:31:50

标签: docker containers init swarm

我创建了docker swarm use命令:" docker swarm init"但是没有输出。

PS C:\ConsoleZ> docker swarm init

然后我使用命令" docker node ls"在另一个终止中,它输出:

PS C:\ConsoleZ> docker node ls
ID                           HOSTNAME  STATUS  AVAILABILITY  MANAGER STATUS
rttn874z4rpnuisrcse6869zu *            Down    Active        Leader

PS C:\ConsoleZ> docker network ls
NETWORK ID          NAME                DRIVER              SCOPE
w5d6snuid9pi        ingress             overlay             swarm
8bc0801a3b5a        nat                 nat                 local
285a0eacfb3f        none                null                local

经理节点为什么是DOWN而没有HOSTNAME?

我重新启动计算机,我创建的swarm丢失了,我必须使用init命令创建另一个。

有人知道为什么吗?

<顺便说一下,我使用Windows服务器2016的Windows容器

PS C:\ConsoleZ> docker info
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 3
Server Version: 17.03.1-ee-3
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
  Volume: local
  Network: l2bridge l2tunnel nat null overlay transparent
Swarm: pending
  NodeID: rttn874z4rpnuisrcse6869zu
  Is Manager: true
  ClusterID: 9bie63os8jzg0e8vvfx3lg3or
  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.1.219
Manager Addresses:
  0.0.0.0:2377
Default Isolation: process
Kernel Version: 10.0 14393 (14393.1198.amd64fre.rs1_release_sec.170427-1353)
Operating System: Windows Server 2016 Datacenter
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 1.999 GiB 
Name: windock219
ID: 7AOY:OT6V:BTJV:NCHA:3OF5:5WR5:K2YR:CFG3:VXLD:QTMD:GA3D:ZFJ2
Docker Root Dir: C:\ProgramData\docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 192.168.1.245
 127.0.0.0/8
Live Restore Enabled: false

0 个答案:

没有答案