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:

1
$ docker run swarm --help

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

1
$ docker run swarm <command> --help

For example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ 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
doc_docker
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.