help - コマンドに関する情報の表示¶
help コマンドは各コマンドの使い方に関する情報を表示します。
例えば、Swarm のオプション一覧を表示するには、次のように実行します:
$ docker run swarm --help
特定の Swarm コマンドのオプションに対する引数一覧を確認するには、次のように実行します。
$ docker run swarm <command> --help
実行例:
$ 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
参考
- help - Display information about a command