Using Docker Swarm Secrets to Store and Rotate your SSL Certificates with Nginx

What is Docker Swarm Secrets?


Docker Swarm has an excellent feature out of the box — Docker Swarm secrets. Using it, you can easily keep your sensitive data like credentials, TLS certificates, etc.

In terms of Docker Swarm services, a secret is a blob of data, such as a password, SSH private key, SSL certificate, or another piece of data that should not be transmitted over a network or stored unencrypted in a Dockerfile or in your application’s source code. You can use Docker secrets to centrally manage this data and securely transmit it to only those containers that need access to it.

Kubernetes vs. Docker: Comparing The Two Container Orchestration Giants!

Who will be the winner this time?

Kubernetes and Docker Swarm are leading container orchestration tools today. So before using them in your prod, you should know what exactly they are and how they work. To understand the very same, read this blog which talks about the performance and usability face-off between Kubernetes vs. Docker Swarm.

You may also enjoy:  Kubernetes vs. Docker

The differences between Kubernetes versus Docker Swarm are briefly summarized in the below table. A detailed explanation is provided later in the blog.