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

Systemd in rhel7.2 is not picking up proxy configs #629

Open
jamesdboone opened this issue Jan 31, 2017 · 0 comments
Open

Systemd in rhel7.2 is not picking up proxy configs #629

jamesdboone opened this issue Jan 31, 2017 · 0 comments

Comments

@jamesdboone
Copy link

Looks like docker service doesn't pick up the proxy environment vars.
uname -a
Linux myvm 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 9 10:09:10 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

systemctl show --property=Environment docker.service
Environment=

cat /etc/sysconfig/docker

This file is managed by Puppet and local changes

may be overwritten

OPTIONS=" --ip-forward=true --iptables=true --ip-masq=true --log-driver journald --selinux-enabled=true --bip=192.168.1.1/24 --icc=false --disable-legacy-registry=true --userland-proxy=false --live-restore=true"

http_proxy='http://myproxy.url.com:80'
https_proxy='http://myproxy.url.com:80'
no_proxy='myreg.url.com,myreg.url.com'

This is also a handy place to tweak where Docker's temporary files go.

TMPDIR="/tmp/"

I resolved this by adding to bottom of 'service-overrides-rhel.conf.erb':
<% if @Proxy %>Environment="HTTP_PROXY=<%= @Proxy %>" "HTTPS_PROXY=<%= @Proxy %>"<% if @no_proxy %> "NO_PROXY=<%= @no_proxy %>"<% end %><% end %>

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

1 participant