dcos task

管理 DC/OS 任务

说明

管理 DC/OS 任务。

使用

  1. dcos task [OPTION]

选项

名称,简写默认值说明
—completed打印已完成和正在进行的任务。
—help, h打印用法。
—info打印该子命令的简短描述。
—jsonJSON 格式的数据。
—version, v打印版本信息。

位置自变量

名称,简写默认值说明
<task>完整任务 ID,部分任务 ID 或正则表达式。

dcos task

  1. Description:
  2. Manage DC/OS tasks.
  3. Usage:
  4. dcos task --help
  5. dcos task --info
  6. dcos task log [--completed --follow --lines=N] [<task>] [<file>]
  7. dcos task ls [--long --completed] [<task>] [<path>]
  8. dcos task [--completed --json <task>]
  9. Command:
  10. log
  11. Print the task log. By default, the 10 most recent task logs from stdout
  12. are printed.
  13. ls
  14. Print the list of files in the Mesos task sandbox.
  15. Options:
  16. --completed
  17. Print completed and in-progress tasks.
  18. -h, --help
  19. Print usage.
  20. --info
  21. Print a short description of this subcommand.
  22. --follow
  23. Dynamically update the log.
  24. --json
  25. Print JSON-formatted list of tasks.
  26. --lines=N
  27. Print the last N lines. The default is 10 lines.
  28. --long
  29. Print full Mesos sandbox file attributes.
  30. --version
  31. Print version information.
  32. Positional Arguments:
  33. <file>
  34. Specify the sandbox file to print. The default is stdout.
  35. <path>
  36. The Mesos sandbox directory path. The default is '.'.
  37. <task>
  38. A full task ID, a partial task ID, or a regular expression.

dcos task exec

在任务容器内部启动进程…

dcos task log

显示任务日志…

dcos task ls

显示 Mesos 任务目录中的文件列表…