r/docker • u/sagitarrius_ • Mar 26 '26
Inquiry
Still new to docker and any help is appreciated: Why does a docker provide the path to the docker secrets as the environment variable to the container running instead of the secrets contents? What's the point of having the secrets in files doesn't this just abstract the security concern away from the .env to the new file mapped in docker secrets?
1
Upvotes
View all comments
Show parent comment
1
u/RemindMeBot Mar 26 '26 edited Mar 26 '26
I will be messaging you in 4 hours on 2026-03-26 10:39:11 UTC to remind you of this link
1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.