2021-05-21 08:30:56 -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.
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# docker_plugin (Data Source)
|
|
|
|
|
|
|
|
|
|
Reads the local Docker plugin. The plugin must be installed locally.
|
|
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
|
|
```terraform
|
|
|
|
|
### With alias
|
|
|
|
|
data "docker_plugin" "by_alias" {
|
|
|
|
|
alias = "sample-volume-plugin:latest"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
### With ID
|
|
|
|
|
data "docker_plugin" "by_id" {
|
|
|
|
|
id = "e9a9db917b3bfd6706b5d3a66d4bceb9f"
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
|
|
|
## Schema
|
|
|
|
|
|
|
|
|
|
### Optional
|
|
|
|
|
|
2022-06-17 06:09:59 -04:00
|
|
|
- `alias` (String) The alias of the Docker plugin. If the tag is omitted, `:latest` is complemented to the attribute value.
|
|
|
|
|
- `id` (String) The ID of the plugin, which has precedence over the `alias` of both are given
|
2021-05-21 08:30:56 -04:00
|
|
|
|
|
|
|
|
### Read-Only
|
|
|
|
|
|
2022-06-17 06:09:59 -04:00
|
|
|
- `enabled` (Boolean) If `true` the plugin is enabled
|
|
|
|
|
- `env` (Set of String) The environment variables in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
|
|
|
- `grant_all_permissions` (Boolean) If true, grant all permissions necessary to run the plugin
|
|
|
|
|
- `name` (String) The plugin name. If the tag is omitted, `:latest` is complemented to the attribute value.
|
|
|
|
|
- `plugin_reference` (String) The Docker Plugin Reference
|
2021-05-21 08:30:56 -04:00
|
|
|
|
|
|
|
|
|