This content is associated with a legacy version of the Replicated product. For the current Replicated product documentation, see docs.replicated.com.
Collect the stdout and stderr of
exec-ing a command on a running docker container
collect: v1: - docker.container-exec: container: supergoodtool-www output_dir: /www/debug/ exec_config: Cmd: - nginx - '-t'
exec_config- Same as would be passed to
docker exec, as in The Docker API
container- The name of the container to run the command in
labels- Labels shared by the container(s) to run the command in
stdout.raw- The standard output of the command
stderr.raw- The standard error of the command
This spec also inherits all of the required and optional Shared Parameters