Pacharapol Withayasakpunt
Posted on April 27, 2020
Now that you put secrets
into .dockerignore
# .dockerignore
.env
How do you ensure the secrets is available?
- Building
docker build -t tag --build-arg SECRET_ENV .
, withARG SECRET_ENV
inDockerfile
- 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...
💖 💪 🙅 🚩
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.