Section: Swarm Basics

List swarm nodes

bash
bash
docker node ls
Explanation

Shows manager status, availability, and health.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Swarm Basics
Inspect a node
Show low-level swarm node details.
OpenIn sheetbashsame section
Add node label
Add or update node labels.
OpenIn sheetbashsame section
Drain a node
Mark a node unavailable for task scheduling.
OpenIn sheetbashsame section
Initialize swarm
Initialize the current engine as a swarm manager.
OpenIn sheetbashsame section
Initialize swarm with advertise address
Initialize swarm and advertise a specific manager IP.
OpenIn sheetbashsame section
Show worker join token
Show or rotate the worker join token.
OpenIn sheetbashsame section