---
name: "cdist-type__docker_secret"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__docker_secret"
---

# cdist-type\_\_docker\_secret(7)

Manage Docker secrets

## NAME

cdist-type\_\_docker\_secret - Manage Docker secrets

## DESCRIPTION

This type manages Docker secrets.

## OPTIONAL PARAMETERS

- **source**

  Path to the source file. If it is '-' (dash), read standard input.

- **state**

  'present' or 'absent', defaults to 'present' where:

  - **present**

    if the secret does not exist, it is created

  - **absent**

    the secret is removed

## CAVEATS

Since Docker secrets cannot be updated once created, this type takes no action if the specified secret already exists.

## EXAMPLES

```
# Creates "foo" secret from "bar" source file
__docker_secret foo --source bar
```

## AUTHORS

Ľubomír Kučera \<lubomir.kucera.jr at gmail.com\>

## COPYING

Copyright (C) 2018 Ľubomír Kučera. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

## COPYRIGHT

ungleich GmbH 2021
