No error for --env-file if the ./env file does not exist
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start at the Docker CLI's --env-file entry point and locate the parser mentioned in the issue. Compare its behavior with Docker Compose, then verify that a missing env-file path no longer produces an error while existing-file behavior remains intact.
Written by the indexing model from the issue text.
Description
Description
This would be really nice QoL improvement for devcontainers. Many devs will have personal .env files with API keys for services, but it's annoying to have to make an empty .env file just so that the docker CLI doesn't error at you. You can do a workaround by using "initialize command" "source .env". I believe this behavior is different than docker compose which lets you provide a path with no file actual file necessary.
I believe the fix would be straightforward just having a different default behavior for the parser which powers this features. If you would like I can make a PR.
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 2.2k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 47
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/cli
-
kind/bug status/0-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
kind/bug status/0-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
kind/feature status/0-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
kind/bug status/0-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug group: validation priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
codecheckers/chekhov#51 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100