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
2022-05-24 15:39

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/

Related vendor

VENDOR LAST 12M #/PRODUCTS LOW MEDIUM HIGH CRITICAL TOTAL VULNS
Docker 24 0 19 36 20 75