Docker - Swarm
Setup
Let’s assume we have 3 Nodes in a Docker Swarm Setup.
- Tick
- Trick
- Track
Track is the Leader/Manager. All Machines runs Debian 12.0 (RC, as it is not yet released)
Show Nodes
docker node ls
root@track:~# docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
b2zvkc374v08q2rpocljhkg5n tick Ready Active 23.0.2
khom3cx05bxqxktjq1k5j16gk * track Ready Active Leader 23.0.2
lq53s6mhuzvqrehks0j68sr3e trick Ready Active 23.0.2
Create Simple Service
Run a simple Docker service that uses an alpine-based filesystem, and isolates a ping to 8.8.8.8