These are currently random notes and are not much help to anybody yet. They will get tidied as I add to the page.
Docker swarm secrets
From inside a docker swarm manager node, there are two ways of creating a secret.
Using a string value:
printf <your_secret_value> | docker secret create your_secret_key -
Using a file path:
docker secret create your_secret_key ./your_secret_value.json
Docker swarm secrets are saved, encrypted, and are accessible to containers via a filepath: