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

docker-compose.yml
This tab will not be visible to users and provides only information to help authors when creating content.

Creating Katacoda Scenarios

Thanks for creating Katacoda scenarios. This tab is designed to help you as an author have quick access the information you need when creating scenarios.

Here are some useful links to get you started.

Running Katacoda Workshops

If you are planning to use Katacoda for workshops, please contact [email protected] to arrange capacity.

Debugging Scenarios

Below is the response from any background scripts run or files uploaded. This stream can aid debugging scenarios.

If you still need assistance, please contact [email protected]