Docker-swarm: Unterschied zwischen den Versionen

Aus xinux wiki
Wechseln zu: Navigation, Suche
(install)
(change host file)
Zeile 11: Zeile 11:
 
=change host file=
 
=change host file=
 
;/etc/hosts
 
;/etc/hosts
  10.50.66.21 xinux-node01
+
  10.50.66.21 node01
  10.50.66.22 xinux-node02  
+
  10.50.66.22 node02  
  10.50.66.23 xinux-node03
+
  10.50.66.23 node03
 +
=create swarm=
 +
;node01
 +
==swam init==
 +
*docker swarm init --advertise-addr 10.50.66.21
 +
;node02
 +
*docker swarm join --token XXXXXXXXXX
 +
*docker swarm promote node0
 +
;node03
 +
*docker swarm join --token XXXXXXXXXX
  
 
=links=
 
=links=
 
*https://clouding.io/kb/en-us/articles/360010288160-Docker-Swarm-on-Ubuntu-18-04
 
*https://clouding.io/kb/en-us/articles/360010288160-Docker-Swarm-on-Ubuntu-18-04

Version vom 25. März 2020, 15:54 Uhr

install

change host file

/etc/hosts
10.50.66.21 node01
10.50.66.22 node02 
10.50.66.23 node03

create swarm

node01

swam init

  • docker swarm init --advertise-addr 10.50.66.21
node02
  • docker swarm join --token XXXXXXXXXX
  • docker swarm promote node0
node03
  • docker swarm join --token XXXXXXXXXX

links