docker.container-exec
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'
Required Parameters
container
- The name of the container to run the command inexec_config
- Same as would be passed todocker exec
, as in The Docker API
Outputs
stdout.raw
- The standard output of the commandstderr.raw
- The standard error of the command
Shared Parameters
This spec also inherits all of the required and optional Shared Parameters