How do you manage Docker secrets?

patarapolw

Pacharapol Withayasakpunt

Posted on April 27, 2020

How do you manage Docker secrets?

Now that you put secrets into .dockerignore

# .dockerignore
.env
Enter fullscreen mode Exit fullscreen mode

How do you ensure the secrets is available?

  • Building docker build -t tag --build-arg SECRET_ENV ., with ARG SECRET_ENV in Dockerfile
  • Running docker run -e SECRET_ENV tag

Or, do you use docker secrets?

What do you recommend?

BTW, I thought Oh-My-Zsh dotenv plugin is the end, but it is not yet for Docker...

💖 💪 🙅 🚩
patarapolw
Pacharapol Withayasakpunt

Posted on April 27, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

When Does It Make Sense to Use Docker?
docker When Does It Make Sense to Use Docker?

September 30, 2020

How do you manage Docker secrets?
docker How do you manage Docker secrets?

April 27, 2020

Where do you deploy your Docker?
docker Where do you deploy your Docker?

April 27, 2020