docker.exec

Collect the stdout/stderr of executing a command in an already running docker container

docker.exec

Collect the stdout/stderr of executing a command in an already running docker container

collect:
  v1:
    - docker.exec:
        container: supergoodtool-www
        output_dir: /www/debug/
        exec_config:
          Cmd:
            - toolctl
            - info
            - '--verbose'

Required Parameters

  • container - The container name

  • exec_config - Config options as would be passed to docker exec, as in The Docker API

Outputs

  • stdout.raw - The standard output of the command

  • stderr.raw - The standard error of the command


Shared Parameters

This spec also inherits all of the required and optional Shared Parameters