docker secret

Manage Docker swarm secrets. More information: https://docs.docker.com/reference/cli/docker/secret/.

{{command}} | docker secret create {{secret_name}} -

docker secret create {{secret_name}} {{path/to/file}}

docker secret ls

docker secret inspect --pretty {{secret_name1 secret_name2 ...}}

docker secret rm {{secret_name1 secret_name2 ...}}