Difficulty: intermediate
Estimated Time: 10-15 minutes

In this scenario, you will learn how to use the Docker Secrets functionality in Swarm Mode to securely manage sensitive information such as certificates or passwords.

In this scenario you learned how to create and manage secrets using Docker and Swarm Mode.

Keeping Secrets with Docker Swarm

Step 1 of 6

Step 1 - Initialise Swarm Mode

By default, Docker works as an isolated single-node. All containers are only deployed onto the engine. Swarm Mode turns it into a multi-host cluster-aware engine.

Task: Initialise Swarm Mode

To use the secrets functionality, Docker has to be in "Swarm Mode". This is enabled via docker swarm init