---
title: "Discussion on \"Secrets and Environment Variables in Docker\" | Hashnode"
description: "Discussion on \"Secrets and Environment Variables in Docker\". What belongs in an env var, what deserves better protection, and how to stop credentials from leaking through images, logs, and Git."
url: "https://hashnode.com/posts/secrets-and-environment-variables-in-docker-n823x/6ad9c9f16709c769a71a9593"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Secrets and Environment Variables in Docker](https://blog.zyvop.com/secrets-and-environment-variables-in-docker-n823x?utm_source=hashnode&utm_medium=feed)

What belongs in an env var, what deserves better protection, and how to stop credentials from leaking through images, logs, and Git.

Oct 22 · 10 min read · blog.zyvop.com  
Read the article

-   [#devops](https://hashnode.com/tag/devops)
-   [#docker](https://hashnode.com/tag/docker)
-   [#environmentvariables](https://hashnode.com/tag/environmentvariables)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#security](https://hashnode.com/tag/security)

## Written by

[ZyVOP](https://hashnode.com/@zyvop)

@zyvop · Delhi, India

  
[View profile](https://hashnode.com/@zyvop)

The Developer Publishing Hub

One platform to write, cross-post to Dev.to, Medium, WordPress, Hashnode, and Bluesky, and protect your SEO with canonical links. Zero paywalls and full content ownership.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
