Linux serverNETWORK ADMINISTRATIONSsmtp server liux

How to use a .env file to load environment variables in a dev container

Loading environment variables using a .env file when working with Remote – Containers or GitHub Codespaces. Check out the docs for more info https://code.visualstudio.com/remote/advancedcontainers/environment-variables?WT.mc_id=devcloud-0000-buhollan

source

by Visual Studio Code

linux smtp client

11 thoughts on “How to use a .env file to load environment variables in a dev container

  • what if I want to take only username variable from .env file to yaml? how to do it. Thank You.

  • To gitignore files with .env as extension, it should be *.env instead of .env and that’s probably why the file is still marked as untracked on file navigator (the green U)

  • you lost me at container still learning docker, great vid though thanks keep up the great short tip clips 🙂

  • My intellisense on vscode doesn’t work anymore. Maybe someone can help me to fix it back.

  • Muy bueno, hacer rato estaba buscando como hacer eso, solo que se me rompio el contenedor de un repo que estaba clonando en un volumen y no se como volver a recuperarlo, creo que voy a tener que volver a bajar los archivos del volumen original y volver a rearmar el contenedor jejejeje.

Comments are closed.