LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-secret

manage sensitive data in Docker Swarm

TLDR

Create secret from file
$ docker secret create [name] [file]
copy
Create secret from stdin
$ echo "[secret_value]" | docker secret create [name] -
copy
List secrets
$ docker secret ls
copy
Inspect a secret
$ docker secret inspect [name]
copy
Remove a secret
$ docker secret rm [name]
copy

SYNOPSIS

docker secret command [options]

DESCRIPTION

docker secret manages Swarm secrets, which are sensitive data like passwords, certificates, or API keys. Secrets are encrypted and only available to services that need them. The secret content itself is never exposed in inspect output, only metadata. Secrets are mounted into service containers as files in /run/secrets.

SUBCOMMANDS

create

Create a secret from file or STDIN.
ls
List secrets.
inspect
Display detailed information.
rm
Remove secrets.

INSTALL

sudo apt install docker-cli
copy
sudo dnf install docker-cli
copy
sudo pacman -S docker
copy
sudo apk add docker-cli
copy
sudo zypper install docker
copy
brew install docker
copy
nix profile install nixpkgs#docker
copy

CAVEATS

Only available in Swarm mode. Secrets cannot be updated; create a new version and rotate services.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid