Security News > 2022 > May > How to create a Docker secret and use it to deploy a service
How to create a Docker secret and use it to deploy a service.
I'm going to show you how to create a secret with Docker and then how to use it to deploy a Docker service.
We'll use the printf command and pipe the output of that to the docker command to create a secret called my test secret.
Docker service create -name redis -secret my test secret redis:alpine.
That, my friends, is how you create a secret in Docker and use it within a service.
Also See Share: How to create a Docker secret and use it to deploy a service.
News URL
https://www.techrepublic.com/article/create-docker-secret-deploy-service/