docker node ls

List nodes in the swarm

Options

NameDescription
-f, --filter <filter>Filter output based on conditions provided
--format <string>Pretty-print nodes using a Go template
-q, --quietOnly display IDs