terraform-provider-docker/docs/data-sources/logs.md

41 lines
937 B
Markdown
Raw Normal View History

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "docker_logs Data Source - terraform-provider-docker"
subcategory: ""
description: |-
docker_logs provides logs from specific container
---
# docker_logs (Data Source)
`docker_logs` provides logs from specific container
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `name` (String) The name of the Docker Container
### Optional
- `details` (Boolean)
- `discard_headers` (Boolean) Discard headers that docker appends to each log entry
- `follow` (Boolean)
- `logs_list_string_enabled` (Boolean) If true populate computed value `logs_list_string`
- `show_stderr` (Boolean)
- `show_stdout` (Boolean)
- `since` (String)
- `tail` (String)
- `timestamps` (Boolean)
- `until` (String)
### Read-Only
- `id` (String) The ID of this resource.
- `logs_list_string` (List of String) List of container logs, each element is a line.