docker run --env-file .env myimage
Category: Docker
docker run --env-file .env myimage
Load environment variables into a container from a .env file
Reads all KEY=VALUE lines from a .env file and injects them as environment variables inside the container.