Bootstrap setup Docker Engine in Swarm


docker-machine create -d virtualbox local

@FOR /f "tokens=*" %i IN ('docker-machine env local') DO @%i


docker run swarm create

docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery

token://b5a6bbbe593a7a888f01183e47e60eb5     swarm-manager

docker-machine create -d virtualbox --swarm --swarm-discovery

token://b5a6bbbe593a7a888f01183e47e60eb5 swarm-node-1

docker-machine create -d virtualbox --swarm --swarm-discovery

token://b5a6bbbe593a7a888f01183e47e60eb5 swarm-node-2

docker-machine create -d virtualbox --swarm --swarm-discovery

token://b5a6bbbe593a7a888f01183e47e60eb5 swarm-node-3

@FOR /f "tokens=*" %i IN ('docker-machine env --swarm swarm-manager') DO @%i

docker-machine ls



docker info



Containers: 5
 Running: 5
 Paused: 0
 Stopped: 0
Images: 4
Server Version: swarm/1.2.5
Role: primary
Strategy: spread
Filters: health, port, containerslots, dependency, affinity, constraint
Nodes: 4
 swarm-manager: 192.168.99.105:2376
  └ ID: VCUD:O4NX:DOFM:BHIG:UQK3:GRV2:OYBF:KBPA:PUM5:L4PZ:O5EV:SH2P
  └ Status: Healthy
  └ Containers: 2 (2 Running, 0 Paused, 0 Stopped)
  └ Reserved CPUs: 0 / 1
  └ Reserved Memory: 0 B / 1.021 GiB
  └ Labels: kernelversion=4.4.27-boot2docker, operatingsystem=Boot2Docker 1.12.3 (TCL 7.2); HEAD : 7fc7575 - Thu Oct 27 17:23:17 UTC 2016, provider=virtualbox, storagedriver=aufs
  └ UpdatedAt: 2016-11-08T11:40:39Z
  └ ServerVersion: 1.12.3
 swarm-node-1: 192.168.99.106:2376
  └ ID: GBVX:DDUD:7ADT:DEKW:IUPX:FEJJ:Z22M:MWIA:DBXV:JOSY:VCTW:UKMU
  └ Status: Healthy
  └ Containers: 1 (1 Running, 0 Paused, 0 Stopped)
  └ Reserved CPUs: 0 / 1
  └ Reserved Memory: 0 B / 1.021 GiB
  └ Labels: kernelversion=4.4.27-boot2docker, operatingsystem=Boot2Docker 1.12.3 (TCL 7.2); HEAD : 7fc7575 - Thu Oct 27 17:23:17 UTC 2016, provider=virtualbox, storagedriver=aufs
  └ UpdatedAt: 2016-11-08T11:40:14Z
  └ ServerVersion: 1.12.3
 swarm-node-2: 192.168.99.107:2376
  └ ID: TR3A:Y2VW:3XHX:TNMM:CPA7:ZCL2:HNVW:27SE:2FOR:SGBF:ASMA:5GCC
  └ Status: Healthy
  └ Containers: 1 (1 Running, 0 Paused, 0 Stopped)
  └ Reserved CPUs: 0 / 1
  └ Reserved Memory: 0 B / 1.021 GiB
  └ Labels: kernelversion=4.4.27-boot2docker, operatingsystem=Boot2Docker 1.12.3 (TCL 7.2); HEAD : 7fc7575 - Thu Oct 27 17:23:17 UTC 2016, provider=virtualbox, storagedriver=aufs
  └ UpdatedAt: 2016-11-08T11:40:12Z
  └ ServerVersion: 1.12.3
 swarm-node-3: 192.168.99.108:2376
  └ ID: TRZW:WOI4:RDZK:ZEA7:GYZY:KS2C:NUX6:3XXW:4FJW:5U54:RNQX:7BIV
  └ Status: Healthy
  └ Containers: 1 (1 Running, 0 Paused, 0 Stopped)
  └ Reserved CPUs: 0 / 1
  └ Reserved Memory: 0 B / 1.021 GiB
  └ Labels: kernelversion=4.4.27-boot2docker, operatingsystem=Boot2Docker 1.12.3 (TCL 7.2); HEAD : 7fc7575 - Thu Oct 27 17:23:17 UTC 2016, provider=virtualbox, storagedriver=aufs
  └ UpdatedAt: 2016-11-08T11:40:51Z
  └ ServerVersion: 1.12.3
Plugins:
 Volume:
 Network:
Kernel Version: 4.4.27-boot2docker
Operating System: linux
Architecture: amd64
CPUs: 4
Total Memory: 4.084 GiB
Name: ddddb3a8c0d2
Docker Root Dir:
Debug mode (client): false
Debug mode (server): false

Comments

Popular posts from this blog

Basic Send Message to MQ with Java and IBM MQ JMS

Basic Receive Message to MQ with Java and IBM MQ JMS

Configure Database Connection using MyBatis