diff --git a/roles/docker/templates/docker.service.j2 b/roles/docker/templates/docker.service.j2 index 933c37f0..9f2fde28 100644 --- a/roles/docker/templates/docker.service.j2 +++ b/roles/docker/templates/docker.service.j2 @@ -6,6 +6,11 @@ Requires=docker.socket early-docker.target [Service] EnvironmentFile=-/run/flannel_docker_opts.env +{% if http_proxy is defined and http_proxy != '' %} +Environment="HTTP_PROXY={{ http_proxy }}" +{% endif %} +Environment="DOCKER_TMPDIR={{ docker_tmp_dir }}" + MountFlags=slave LimitNOFILE=1048576 LimitNPROC=1048576