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

Local proxy with docker desktop #2614

Closed
blacksails opened this issue Feb 1, 2022 · 2 comments
Closed

Local proxy with docker desktop #2614

blacksails opened this issue Feb 1, 2022 · 2 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@blacksails
Copy link

blacksails commented Feb 1, 2022

What would you like to be added:

I would like to be able to configure the proxy without changing the proxy environment variables on the host OS.

I would assume that in most cases we should use what is set in ~/.docker/config.json. Wether a specific kind setting would be needed is a bit unclear to me.

Why is this needed:

At our company we are running a CNTLM proxy locally on the host OS, we set our proxy environment variables to point to this proxy to properly reach the internet. When using docker desktop a vm is created, and when launching a kind cluster a container is started on the vm. When the kind cluster is started it inherits the proxy environment variables, but these need to be changed from localhost to host.docker.internal inside the vm in order to point to the proxy on the host OS.

Docker Desktop has a setting for setting this up correctly, but when we have another docker inside docker this doesn't work for that. Instead this container will use the proxy settings from the environment variables. https://docs.docker.com/desktop/mac/#proxies

The docker cli client also has an explicit setting for how the proxy should be setup inside containers. https://docs.docker.com/network/proxy/#configure-the-docker-client

@blacksails blacksails added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 1, 2022
@BenTheElder
Copy link
Member

I would assume that in most cases we should use what is set in ~/.docker/config.json.

This appears to be a duplicate of #1175

@blacksails
Copy link
Author

Yes it is indeed a duplicate sorry about that. I will close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants