# DockerConfig

> Resource DockerConfig in pulumi-portainer.

<!-- Generated from the pulumi-portainer SDK. -->

Resource DockerConfig in pulumi-portainer.

Pulumi type: `portainer:index/dockerConfig:DockerConfig`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as portainer from "pulumi-portainer"

const resource = new portainer.DockerConfig("dockerConfig", {
  data: "<data>",
  endpointId: 0,
})
```

## Arguments

| Property         | Type                        | Required | Description                                                                 |
| ---------------- | --------------------------- | -------- | --------------------------------------------------------------------------- |
| `data`           | `string`                    | yes      | Base64-encoded config payload stored in the Docker Swarm config.            |
| `dockerConfigId` | `string`                    | no       |                                                                             |
| `endpointId`     | `number`                    | yes      | ID of the Portainer environment (Docker Swarm) where the config is created. |
| `labels`         | `{ [key: string]: string }` | no       | Key/value labels attached to the Docker Swarm config.                       |
| `name`           | `string`                    | no       | Name of the Docker Swarm config.                                            |
| `templating`     | `{ [key: string]: string }` | no       | Templating driver configuration applied to the config payload at runtime.   |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property            | Type                        | Computed | Description                                                                    |
| ------------------- | --------------------------- | -------- | ------------------------------------------------------------------------------ |
| `data`              | `string`                    | no       | Base64-encoded config payload stored in the Docker Swarm config.               |
| `dockerConfigId`    | `string`                    | no       |                                                                                |
| `endpointId`        | `number`                    | no       | ID of the Portainer environment (Docker Swarm) where the config is created.    |
| `labels`            | `{ [key: string]: string }` | no       | Key/value labels attached to the Docker Swarm config.                          |
| `name`              | `string`                    | no       | Name of the Docker Swarm config.                                               |
| `resourceControlId` | `number`                    | yes      | ID of the Portainer resource control associated with this Docker Swarm config. |
| `templating`        | `{ [key: string]: string }` | no       | Templating driver configuration applied to the config payload at runtime.      |
