W3cubDocs

/Docker 1.11

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

© 2013–2016 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
https://docs.docker.com/v1.11/swarm/reference/help/