Description

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

Usage

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

Options

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.

Examples

For examples, see the debugging documentation.