dcos task exec

Launching a process inside of a task's container


Launch a process (<cmd>) inside of a task’s (<task>) container.


dcos task exec [--interactive --tty] <task> <cmd> [<args>...]


Name, shorthand Default Description
--interactive, -i Attach a STDIN stream to the remote command for an interactive session.
--tty, -t Attach a TTY to the remote stream.

Positional arguments

Name, shorthand Default Description
<args> Additional arguments to pass to the command (<cmd>).
<cmd> The command to run inside the remote task’s container. For example: /bin/bash.
<task> A full task ID, a partial task ID, or a regular expression.

Parent command

Command Description
dcos task Manage DC/OS tasks.


For examples, see the debugging documentation.