Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] cli panic on bad env_file properties #11771

Open
mjpowersjr opened this issue Apr 26, 2024 · 1 comment
Open

[BUG] cli panic on bad env_file properties #11771

mjpowersjr opened this issue Apr 26, 2024 · 1 comment
Assignees
Labels

Comments

@mjpowersjr
Copy link

Description

Admittedly it took me way to long to spot this problem in a docker-compose.yaml file :-)

The following will cause the docker compose cli to panic, and the error message does not give the user a hint as to what's wrong:

env_file:
  - file: .env
    required: true

changing the same snippet to the correct definition fixes the panic:

env_file:
  - path: .env
    required: true

Steps To Reproduce

No response

Compose Version

v2.26.1-desktop.1

Docker Environment

No response

Anything else?

No response

@clementgoclock
Copy link

Got something similar here, i guess, #11772

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants