-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Apply newly loaded envvars to "DockerCli" and "APIClient" #9745
Apply newly loaded envvars to "DockerCli" and "APIClient" #9745
Conversation
47e23a3
to
9c844eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
9c844eb
to
8e59b39
Compare
This forces a re-evaluation of the environment variables. Signed-off-by: Ulysses Souza <[email protected]>
8e59b39
to
2c85f67
Compare
Just moving it up to make clearer Signed-off-by: Ulysses Souza <[email protected]>
2c85f67
to
0b4cb85
Compare
Hate to be that guy 😄 But this might've broken something, at least on MacOS. I recently updated to docker-compose v2.10 and started getting this error for any
Using these env vars:
Tried moving these env vars into an
|
Found out a little more detail here. TLSOptions are only set in one spot, inside of InstallFlags. That method isn't called by the InstallFlags seems like a strange place for that particular code to be tucked away. Also, that file calls AFAICT there's no workaround, so I just have to use an older version. 2.7.0 is the newest one without a big warning on it, so that's probably the one I'll pick. But I don't know if the issue is really with this PR or if the code in |
@markdascher thanks for the sleuthing, that's helpful. I'd like to see your issue addressed in some way, whether a kludge or rolling back this PR or some other intervention. I filed #9789 to track this. |
…loaded-envvars" This reverts commit 6fe34c4, reversing changes made to 10cfd55. Signed-off-by: Milas Bowman <[email protected]>
Hello, when this change (docker desktop version) will be available? Thank you. |
Copying #9210 (comment) here:
|
I've been struggling for a long time with the "Client sent an HTTP request to an HTTPS server." error in a local dev setup, and @markdascher's suggestion to use an older version fixed my issue! Thank you!!!!!! |
Glad to hear my comment was helpful! But the latest version (or anything after v2.10.2) already reverted this particular change. I'm currently running version 2.18.1 and there's no "Client sent an HTTP request to an HTTPS server" error. So that might be worth a shot, too. |
Yes, it's strange for me. I was actually on Compose 2.18.1 (included with Docker Desktop 4.20.1) and getting that error. I was on a slightly older version before that (and still getting the error), so I tried upgrading to the latest version, but still got the error. Downgrading to Docker Desktop 4.11.0 (with Compose 2.7.0) fixed it. ¯_(ツ)_/¯ For context, it's for a local web development setup at my company. I tried troubleshooting many parts of it, but downgrading is the only thing that has worked so far. My specific issue was that the local dev app would work when plugged in to a USB to ethernet adapter, but not on wifi. |
What I did
Re-evaluate
DockerCli
andAPIClient
after reading the environment file.I can contain
DOCKER_HOST
and/orDOCKER_CONTEXT
so theDockerCli
passed bydocker/cli
has to be re-evaluated.Related issue
Resolves #9210