-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Pass environment to docker commands #9616
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Welcome @4c0n! |
Hi @4c0n. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 4c0n The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Can one of the admins verify this patch? |
@medyagh Thanks for pointing that PR out. I haven't looked at it before. It seems aimed to achieve a similar goal. Although for me this simple solution works. It also seems partially included in the other PR though. Not in a conflicting kind of way. |
I signed it |
This reverts commit 3180541.
Removed left over argument
@4c0n: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@4c0n we recenetly added support for non-default docker environments, do u mind checking if latest minikube on head has fixed the problem you are describing ? |
Do you mind resolving the merge conflicts and addressing @medyagh 's comments? |
@medyagh Yes it looks like the change in this PR is also included/addressed in that PR. Closing this one. |
Ran into some issues trying to use minikube on systems that do not use the unix socket to connect to the docker daemon.
The issue at hand is that the docker CLI is configured only through the use of arguments or environmental variables. Even when using contexts there is no other way to select a context.
This change allows the environmental variables to be passed along with the docker commands, so that the client can run in the same manner that it would as when it would be executed by the user (especially when configured using environmental variables).
To make this happen, I had to modify the behavior of always clearing the docker daemon related env vars within the application context to only unsetting them, when the log line actually states that it will.