Docker · hands-on lab
Docker Lab 19: Secrets and Configs in Swarm
Store passwords as swarm secrets and files as configs, mount them into services and rotate a secret.
- 40 minutesTime in the lab
- AdvancedLevel
- 5 tasksChecked automatically
- CertificateVerifiable link when you finish
The situation
Passwords were in environment variables in plain text. You move them into swarm secrets.
What you will do
- Guided exercise: Create a secret
- Guided exercise: Use it in a service
- Guided exercise: A config file
- Lab: Rotate the secret
- Storagequestion
How it works
The lab opens in your browser: a real terminal or desktop, nothing to install. Work through the tasks, press Check after each one and the portal verifies your work. Stuck? Ask for a hint. Finish every task and you get a certificate page with its own verification link for LinkedIn or your CV.