mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-02-11 23:03:13 -05:00
41 lines
844 B
Markdown
41 lines
844 B
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "docker_config Resource - terraform-provider-docker"
|
|
subcategory: ""
|
|
description: |-
|
|
Manages the configs of a Docker service in a swarm.
|
|
---
|
|
|
|
# docker_config (Resource)
|
|
|
|
Manages the configs of a Docker service in a swarm.
|
|
|
|
## Example Usage
|
|
|
|
```terraform
|
|
resource "docker_config" "foo_config" {
|
|
name = "foo_config"
|
|
data = "ewogICJzZXJIfQo="
|
|
}
|
|
```
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
## Schema
|
|
|
|
### Required
|
|
|
|
- **data** (String, Sensitive) Base64-url-safe-encoded config data
|
|
- **name** (String) User-defined name of the config
|
|
|
|
### Optional
|
|
|
|
- **id** (String) The ID of this resource.
|
|
|
|
## Import
|
|
|
|
Import is supported using the following syntax:
|
|
|
|
```shell
|
|
#!/bin/bash
|
|
$ terraform import docker_config.foo "$(docker config inspect -f {{.ID}} p73)"
|
|
```
|