dive
dive copied to clipboard
How to view docker secrets in a Dockerfile
Hi

Is there any way to view this docker secret?
Secrets not stored inside container. It's stored on host - you should set them yourself to desired values before running container.
Secrets not stored inside container. It's stored on host - you should set them yourself to desired values before running container.
It's. Not mine but I wanted to explore it out
@AmirulAndalib , no, they don't. Docker/Podman/Kubernetes just mounts secret data to /run/secrets/<secret_name> file's, so app inside container can read it at runtime.
This feature made exactly as simple way to manage secret data(passwords, private keys, etc) that should never be stored inside container.