docker.run

Collect the stderr/stdout of running a single docker container

docker.run

Collect the stderr/stdout of running a single docker container

collect:
  v1:
    - docker.run:
        description: Listing of host's network interfaces
        output_dir: /host/network
        container_create_config:
          Config:
            Cmd:
              - ip
              - addr
              - show
            Image: 'debian:latest'
          HostConfig:
            AutoRemove: true
            NetworkMode: host

Required Parameters

  • container_create_config - Same as would be passed to docker run, as in The Docker API

Optional Parameters

  • enable_pull - If true, allow this container to be pulled if not present

Outputs

  • stdout.raw - The standard output of the container

  • stderr.raw - The standard error of the container


Shared Parameters

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