Files
docker-docs/swarm/reference/help.md
Gaetan c56964c890 fix type of keywords entry in frontmatter (in /swarm/ dir and search.md and release-notes.md) (#515)
keywords should be a string, not an array containing one string

Signed-off-by: Gaetan de Villele <gdevillele@gmail.com>
2016-11-10 11:59:37 -08:00

1.0 KiB

description, keywords, title
description keywords title
Get help for Swarm commands. swarm, help 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

Arguments:
   <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>

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