32. Docker Swarm and Node Commands

Опубликовано: 06 Ноябрь 2024
на канале: iMustLearn
96
1

##Swarm and Node Commands:
-------------------------
List all nodes . (On
docker node ls

To inspect a node
docker node inspect Node Id

Promote a node to Manager.
docker node promote Node Id

Demote a node to Worker
docker node demote Node Id


Remove a node from Swarm
Step1: On Manager
docker node rm f [ Node name]
Step 2: On Worker
docker swarm leave

Generate Join token for worker. (On Manager).
docker swarm join token worker


Generate join token for manager. (On Manager).
docker swarm join token manager

Reference Doc:
https://docs.docker.com/engine/refere...
https://docs.docker.com/engine/refere...