Advisory: See Swarm mode overview for the orchestration features introduced in Docker Engine 1.12. Only refer to the Docker Swarm documents below for information on the standalone Swarm product.

help - Display information about a command

The help command displays information about how to use a command.

For example, to see a list of Swarm options and commands, enter:

$ docker run swarm --help

To see a list of arguments and options for a specific Swarm command, enter:

$ docker run swarm <command> --help

For example:

$ docker run swarm list --help
Usage: swarm list [OPTIONS] <discovery>

List nodes in a cluster

   <discovery>    discovery service to use [$SWARM_DISCOVERY]
                   * token://<token>
                   * consul://<ip>/<path>
                   * etcd://<ip1>,<ip2>/<path>
                   * file://path/to/file
                   * zk://<ip1>,<ip2>/<path>
                   * [nodes://]<ip1>,<ip2>

   --timeout "10s"                          timeout period
   --discovery-opt [--discovery-opt option --discovery-opt option]  discovery options