Docker in version 1.13 introduced the concept of secrets. For any application managing configuration variables, ssh keys, passwords, API keys etc. is a crucial part, This data is not be disclosed to anyone outside the authority.
I have been writing an article on Docker secrets in/out, This repository holds the application used to get a hands on, What is explained in that article.
https://medium.com/acmvit/docker-secret-in-out-94c66eb4376b
- Play with Docker (To configure multiple node swarms)
- Official Docker Docs on Secrets
- Stack File Format for Defining Secrets
References