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

38 lines
1.1 KiB
Markdown
Raw Normal View History

2021-05-13 02:06:55 -04:00
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "docker_plugin Data Source - terraform-provider-docker"
subcategory: ""
description: |-
Reads the local Docker plugin. The plugin must be installed locally.
2021-05-13 02:06:55 -04:00
---
# docker_plugin (Data Source)
Reads the local Docker plugin. The plugin must be installed locally.
2021-05-13 02:06:55 -04:00
## Example Usage
2021-05-13 02:06:55 -04:00
```terraform
data "docker_plugin" "sample-volume-plugin" {
alias = "sample-volume-plugin:latest"
}
```
2021-05-13 02:06:55 -04:00
<!-- schema generated by tfplugindocs -->
## Schema
### Optional
- **alias** (String) The alias of the Docker plugin. If the tag is omitted, `:latest` is complemented to the attribute value.
2021-05-13 02:06:55 -04:00
- **id** (String) The ID of this resource.
- **name** (String) The plugin name. If the tag is omitted, `:latest` is complemented to the attribute value.
2021-05-13 02:06:55 -04:00
### Read-Only
- **enabled** (Boolean) If `true` the plugin is enabled
- **env** (Set of String) The environment variables in the from of `KEY=VALUE`, e.g. `DEBUG=0`
2021-05-13 02:06:55 -04:00
- **grant_all_permissions** (Boolean) If true, grant all permissions necessary to run the plugin
- **plugin_reference** (String) The Docker Plugin Reference
2021-05-13 02:06:55 -04:00