Docker-swarm: Unterschied zwischen den Versionen

Aus xinux wiki
Wechseln zu: Navigation, Suche
(node01 node02 node03)
(node01 node02 node03)
Zeile 25: Zeile 25:
  
 
==node01 node02 node03==
 
==node01 node02 node03==
apt install nfs-common nfs-util
+
*apt install nfs-common nfs-util
 
+
*nfs mount
nfs mount
 
  
 
=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, 16:35 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

swarm 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

node01 node02 node03

  • apt install nfs-common nfs-util
  • nfs mount

links