support proxies with docker on rhel

This commit is contained in:
Spencer Smith
2016-05-10 15:49:27 -07:00
parent 96c63cc0b6
commit adceaf60e1
4 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
[Service]
Environment={% if http_proxy %}"HTTP_PROXY={{ http_proxy }}"{% endif %} {% if https_proxy %}"HTTPS_PROXY={{ https_proxy }}"{% endif %} {% if no_proxy %}"NO_PROXY={{ no_proxy }}"{% endif %}