mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-02-11 14:53:09 -05:00
844 B
844 B
| page_title | subcategory | description |
|---|---|---|
| docker_config Resource - terraform-provider-docker | 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
resource "docker_config" "foo_config" {
name = "foo_config"
data = "ewogICJzZXJIfQo="
}
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:
#!/bin/bash
$ terraform import docker_config.foo "$(docker config inspect -f {{.ID}} p73)"