--- # 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 ### 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)" ```