Getting Started with Docker Secrets
Docker secrets is a secrets management tool designed for use with Docker Swarm. And of course, Docker Swarm refers to the cluster management and orchestration features built into the Docker Engine. So imagine you've got a few services that you want to distribute across various nodes - Docker Swarm makes this unbelievably simple.
Now, if you care about security (even a little bit) you'll soon be looking for a way to get your sensitive data (think database passwords, API credentials, et al.) out of your code base. We certainly don't want to store a configuration file with all of our passwords on our Github repository and hope for the best. While there are various ways to deal with this problem, Docker again provides a simple solution - Docker secrets. This guide will walk you through various aspects of setting up a using Docker secrets.