Dies ist eine alte Version des Dokuments!
Basiert auf Offizielle Docker Docs
root@dockerman01:/# docker swarm init --advertise-addr 172.17.200.24
Swarm initialized: current node (u9b1hue4li17y3rhk4lbp5t0v) is now a manager.
To add a worker to this swarm, run the following command:
docker swarm join --token SWMTKN-1-4gdbuf904kc47wq12fji7r2s2axldbrln92gskjb5rlcmejgxj-3gde4d4qb1p7icrw12kiy3u8b 172.17.200.24:2377
To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
Nächster Manager Node (dockerman01):
root@dockerman01:/# docker swarm join-token manager
To add a manager to this swarm, run the following command:
docker swarm join --token SWMTKN-1-4gdbuf904kc47wq12fji7r2s2axldbrln92gskjb5rlcmejgxj-5hgn7qjkaznd2hl8y18inr6sm 172.17.200.24:2377
Auf dem Node (dockerman02):
root@dockerman02:~# docker swarm join --token SWMTKN-1-4gdbuf904kc47wq12fji7r2s2axldbrln92gskjb5rlcmejgxj-5hgn7qjkaznd2hl8y18inr6sm 172.17.200.24:2377 This node joined a swarm as a manager.
Portainer (dockerman01):
curl -L https://downloads.portainer.io/portainer-agent-stack.yml -o portainer-agent-stack.yml docker stack deploy -c portainer-agent-stack.yml portainer