---
title: "Discussion on \"The Secret Your Container Has but Your Shell Can't See\" | Hashnode"
description: "Discussion on \"The Secret Your Container Has but Your Shell Can't See\". You inject a secret into a container at startup, the app runs perfectly, and then docker exec fails with an authentication error. Here is why it happens, and the one line that fixes it."
url: "https://hashnode.com/posts/the-secret-your-container-cant-see/6a46215be3546f6bcde8cc17"
---

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

Discussion

# [The Secret Your Container Has but Your Shell Can't See](https://ubeyd.dev/the-secret-your-container-cant-see?utm_source=hashnode&utm_medium=feed)

You inject a secret into a container at startup, the app runs perfectly, and then docker exec fails with an authentication error. Here is why it happens, and the one line that fixes it.

Jul 2 · 6 min read · ubeyd.dev  
Read the article

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

## Written by

[Ubeydullah Keleş](https://hashnode.com/@ubeyd)

@ubeyd · Abidjan, Ivory Coast

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

Laravel Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
