2021-05-21 08:30:56 -04:00
|
|
|
---
|
|
|
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
2022-06-17 06:09:59 -04:00
|
|
|
page_title: "Resource docker_plugin - terraform-provider-docker"
|
2021-05-21 08:30:56 -04:00
|
|
|
subcategory: ""
|
|
|
|
|
description: |-
|
|
|
|
|
Manages the lifecycle of a Docker plugin.
|
|
|
|
|
---
|
|
|
|
|
<!-- Bug: Type and Name are switched -->
|
2022-06-17 06:09:59 -04:00
|
|
|
# Resource (docker_plugin)
|
2021-05-21 08:30:56 -04:00
|
|
|
|
|
|
|
|
Manages the lifecycle of a Docker plugin.
|
|
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
|
|
```terraform
|
|
|
|
|
resource "docker_plugin" "sample-volume-plugin" {
|
|
|
|
|
name = "docker.io/tiborvass/sample-volume-plugin:latest"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resource "docker_plugin" "sample-volume-plugin" {
|
|
|
|
|
name = "tiborvass/sample-volume-plugin"
|
|
|
|
|
alias = "sample-volume-plugin"
|
|
|
|
|
enabled = false
|
|
|
|
|
grant_all_permissions = true
|
|
|
|
|
force_destroy = true
|
|
|
|
|
enable_timeout = 60
|
|
|
|
|
force_disable = true
|
|
|
|
|
env = [
|
|
|
|
|
"DEBUG=1"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
|
|
|
## Schema
|
|
|
|
|
|
|
|
|
|
### Required
|
|
|
|
|
|
2022-06-17 06:09:59 -04:00
|
|
|
- `name` (String) Docker Plugin name
|
2021-05-21 08:30:56 -04:00
|
|
|
|
|
|
|
|
### Optional
|
|
|
|
|
|
2022-06-17 06:09:59 -04:00
|
|
|
- `alias` (String) Docker Plugin alias
|
|
|
|
|
- `enable_timeout` (Number) HTTP client timeout to enable the plugin
|
|
|
|
|
- `enabled` (Boolean) If `true` the plugin is enabled. Defaults to `true`
|
|
|
|
|
- `env` (Set of String) The environment variables in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
|
|
|
- `force_destroy` (Boolean) If true, then the plugin is destroyed forcibly
|
|
|
|
|
- `force_disable` (Boolean) If true, then the plugin is disabled forcibly
|
|
|
|
|
- `grant_all_permissions` (Boolean) If true, grant all permissions necessary to run the plugin
|
|
|
|
|
- `grant_permissions` (Block Set) Grant specific permissions only (see [below for nested schema](#nestedblock--grant_permissions))
|
2021-05-21 08:30:56 -04:00
|
|
|
|
|
|
|
|
### Read-Only
|
|
|
|
|
|
2022-06-17 06:09:59 -04:00
|
|
|
- `id` (String) The ID of this resource.
|
|
|
|
|
- `plugin_reference` (String) Docker Plugin Reference
|
2021-05-21 08:30:56 -04:00
|
|
|
|
|
|
|
|
<a id="nestedblock--grant_permissions"></a>
|
|
|
|
|
### Nested Schema for `grant_permissions`
|
|
|
|
|
|
|
|
|
|
Required:
|
|
|
|
|
|
2022-06-17 06:09:59 -04:00
|
|
|
- `name` (String) The name of the permission
|
|
|
|
|
- `value` (Set of String) The value of the permission
|
2021-05-21 08:30:56 -04:00
|
|
|
|
|
|
|
|
## Import
|
|
|
|
|
|
|
|
|
|
Import is supported using the following syntax:
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
terraform import docker_plugin.sample-volume-plugin "$(docker plugin inspect -f {{.ID}} tiborvass/sample-volume-plugin:latest)"
|
|
|
|
|
```
|