create_secret
Generate a Docker swarm secret by providing a name and data payload, with options for labels and driver configuration.
Instructions
Create a swarm secret.
args: name - The name of the secret data - The secret payload labels - Labels to apply driver - Optional secret driver configuration returns: dict - The created secret's attrs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| name | Yes | ||
| driver | No | ||
| labels | No |