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

Sytemd Proxy not apply #230

Closed
jynolen opened this issue Aug 8, 2019 · 1 comment
Closed

Sytemd Proxy not apply #230

jynolen opened this issue Aug 8, 2019 · 1 comment

Comments

@jynolen
Copy link

jynolen commented Aug 8, 2019

tldr;
If proxy is provide to pillar the formula should create a file in
/etc/systemd/system/docker.service.d
with content

[Service]
Environment="HTTP_PROXY=http://proxy.example.com:80/"

=====
Hello,
It seems that if the system is using systemd and if we provide proxy var to the pillar the proxy conf is not applied as docker configuration said :
https://docs.docker.com/config/daemon/systemd/
You cannot configure these environment variables using the daemon.json file.

If you are behind an HTTP or HTTPS proxy server, for example in corporate settings, you need to add this configuration in the Docker systemd service file.

For now, the workarround is to have another state to file.managed the systemd file. but it could be great to insert it to the formula.
Should produce

@noelmcloughlin
Copy link
Member

Fixed in merged #256

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

No branches or pull requests

2 participants