dcos config show

显示群集配置文件

说明

dcos config show 命令将显示当前 附加的群集 的 DC/OS 配置文件内容。

使用

  1. dcos config set <name> <value> [flags]

选项

名称说明
—help, h显示使用情况。

位置自变量

名称说明
<name>属性的名称
<value>属性的值

示例

查看特定配置值

在此示例中,显示 DC/OS URL。

  1. dcos config show core.dcos_url

输出如下:

  1. https://your-cluster-9vqnkrq5pt2n-2781474.cloue-1.elb.amazonaws.com

查看所有配置值

在此示例中,显示了所有配置值。

  1. dcos config show

输出如下:

  1. cluster.name MyCluster
  2. core.dcos_acs_token ********
  3. core.dcos_url http://mycluster-elasticl-7qbh2zcfyz6h-4734.us-east-1.elb.amazonaws.com

父命令

命令说明
dcos config管理 DC/OS 配置