docker node ls --format '{{.Hostname}} {{.Status}}'

Category: Docker

docker node ls --format '{{.Hostname}} {{.Status}}'

List swarm nodes with custom formatting

Enumerates swarm nodes with role, status, and availability columns; --format trims it to hostname and status via Go templates. The Leader marker shows the elected manager. Filter by role with --filter role=manager.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.