

Docker Compose reads your “.env” without opt-out
source link: https://www.tuicool.com/articles/zMZrQzM
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Similar/repeat request to #4642 . New/different reason now though. Related to #6511 .
Other systems use the exact same file .env
for parsing and processing environment variables. With the release of 1.24.0, the feature where Compose will no longer accept whitespace in variable names sourced from environment files. This matches the Docker CLI behavior.
breaks compatibility with other .env utilities. Although my setup does not use the variables in .env for docker-compose, docker-compose now fails because the .env file does not meet docker-compose's format.
I either have to make the .env file fit docker-compose's format or remove the file.
I propose that you can specify an option to ignore the .env
file or specify a different .env
file (such as .docker.env
) in the docker-compose.yml
file so that we can work around projects that are already using the .env
file for something else.
Recommend
-
10
Rust RFC: Opt-in builtin traits Feb 28, 2014 In today’s Rust, there are a number of builtin traits (sometimes called “kinds”): Send, Freeze, Share, and Pod (in the futu...
-
15
Google Analytics Opt-out Browser Add-on To provide website visitors the ability to prevent their data from being used by Google Analytics, we have developed the Google Analytics opt-out browser add-on for websites using the suppor...
-
11
Opt out of safeguard holds 10/22/2020 2 minutes to read In this article
-
10
In the smartphone market, the two common chipset manufacturers are Qualcomm and MediaTek. The Snapdragon processors by Qualcomm are the most popular. Although, MediaTek also has a wide range of processors. So, the question is which company sh...
-
16
Member wesleywiser commented
-
6
Cloud Run Quietly Swaps HOME env var in Docker Sep 27, 2021 I generally love Cloud Run - I use it to host a lot of my side projects and demos that won’t receive a lot of traffic, but that still ne...
-
9
6224 members Technology The latest news, reviews and features from the digital and analog world.
-
5
Who reads your email? March 9th, 2023 This is the second blog post on the topic of the centralization of the internet. The first post, discussing diversity of authoritative name servers, can b...
-
5
Laravel without .env filesOctober 14, 2023I worked with Laravel and Docker between 2016 and 2022. During all these years I had a small papercut problem that involves environment variables. I had to juggle between
-
9
What is this? #! (pronounced shebang) is a Unix convention that's typically used for scripting languages like Python and Bash. This abuses it to let you package applications in a cross-distro and cross-platform way....
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK