-
Notifications
You must be signed in to change notification settings - Fork 291
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
Nerdctl can't find .env file #1213
Comments
Unfortunately, running rancher-desktop 1.0.0 I can't reproduce this issue, running the command from both the WSL and powershell sides. I'm closing this issue now, but if it's still a problem with the current version, and/or there are pertinent messages in the log files, please feel free to reopen it. |
@ericpromislow hmm, is there v1.0.0 out now for windows? The version I ran it from was 0.7.1 edit: I can see that it is in beta now. Will try. thanks! |
Great! |
Hey @ericpromislow. On my side, the problem still persists, even with the new version... :( I forgot to mention that I am using containerd and not moby... |
I think this issue is somehow related? |
I tried to run it with debug: nerdctl compose -f ./docker-compose.yml up --build --env-file ./config-dev.env --debug The only thing shown is:
|
Hi, This doesn't look exactly like #1279 unless there are some environment variables that When I run with
but then it echoes the contents of the combined config file. This is with If I run the command from a different directory, I get the error message complaining about the missing Are you running the command in the same directory, or is this directory mounted at a point other than |
@ericpromislow You cannot use @benjaminpreiss already confirmed that they are running with Since this is on Windows, it sounds like it is a problem with |
I was running the command from the Ubuntu side. In Powershell running |
The It's not obvious from the Usage:
$ docker compose --help Usage: docker compose [OPTIONS] COMMAND Docker Compose Options:
|
@ericpromislow You are absolutely right! It works now, when using --env-file in the right place... I was just so confused by the nerdctl docs, maybe I should request clarification on that there! |
It was also a bug on our side -- our code wasn't handling the path-type arguments correctly when they appeared to the right of the secondary command (in this case |
Not merged yet. |
Closed in #1332 |
Rancher Desktop Version
0.7.1
Rancher Desktop K8s Version
1.22.5
What operating system are you using?
Other (specify below)
Operating System / Build Version
WSL2 debian on Windows 10 professional
What CPU architecture are you using?
x64
Windows User Only
No response
Actual Behavior
nerdctl compose can not find my .env file even though specifying it via the --env-file option
Steps to Reproduce
Create a basic docker-compose.yml e.g.
Create a .env file in the same directory. e.g.
Run command
nerdctl compose -f ./docker-compose.yml config --env-file ./.env
Result
I get an error "FATA[0000] Couldn't find env file: ./.env"
Expected Behavior
The config should be displayed according to the docker-compose.yml
Additional Information
No response
The text was updated successfully, but these errors were encountered: