Back to index
.env file that looks something like this:
can be loaded into a Docker container as environment variables using the
--env-file flag. For example,
docker run --env-file container.env my-image and so on. This flag also works with the
docker create command.