Files
deb-python-dcos/cli/dcoscli/data/help/task_exec.txt
Kevin Klues e52bc6f058 task: add dcos task exec (#838)
This commit adds a new dcos task exec subcommand to the DC/OS CLI.

Using dcos task exec, one can launch arbitrary commands inside a task's
container in a DC/OS cluster. This includes commands that simply print
output to the screen (e.g. ls -la), run interactively (e.g. cat), or
take full control of the terminal (e.g. vim or bash).

Author attribution: Steven Locke @StevenLocke
2016-12-13 18:43:38 -08:00

23 lines
614 B
Plaintext

Description:
Launch an arbitrary command inside a running DC/OS task.
Usage:
dcos-task-exec [--interactive --tty] <task> <cmd> [<args>...]
Command:
exec
Launch a process (<cmd>) inside of a container for a task (<task>).
Options:
-i, --interactive
Attach a STDIN stream to the remote command for an interactive session.
-t, --tty
Attach a tty to the remote stream.
Positional Arguments:
<cmd>
The command to run inside the remote task's container.
For example: `/bin/bash`.
<args>
Additional arguments to pass to the command (<cmd>).