docker.container-inspect

Collect the `docker inspect` output for one or more running or stopped containers. One of `container` or `container_list_options` is required.

docker.container-inspect

Collect the docker inspect output for one or more running or stopped containers. One of container or container_list_options is required.

collect:
  v1:
    - docker.container-inspect:
        output_dir: /containers/cooltool/www-stack
        container_list_options:
          All: true
          Filters:
            name:
              - www
              - nginx
              - dnsmasq

Optional Parameters

  • container - the container name

  • container_list_options - Options to be used to filter the list of containers, as in The Docker API

Outputs

  • {{.Name}}.json - The json output of the inspect call. Will generate this file for each matched container


Shared Parameters

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