docker secret create mysecret ./secret.txt

Category: Docker

docker secret create mysecret ./secret.txt

Store a secret in the Swarm (encrypted at rest and in transit)

Stores a secret in the Swarm — encrypted at rest and in transit. Services access it at /run/secrets/.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.