Browse Source

Update docker with proxy configuration

Change-Id: I7089acb561d13726511bd10ca9d60738e7f4719a
Closes-Bug: #1684057
cooldharma06 2 years ago
parent
commit
7d1bd53785
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      devstack/lib/docker

+ 7
- 0
devstack/lib/docker View File

@@ -10,6 +10,10 @@
10 10
 # ---------
11 11
 # - install_docker
12 12
 
13
+# The following variables are assumed to be defined by certain functions:
14
+#
15
+# - ``http_proxy`` ``https_proxy`` ``no_proxy``
16
+
13 17
 # Save trace setting
14 18
 _XTRACE_DOCKER=$(set +o | grep xtrace)
15 19
 set +o xtrace
@@ -93,6 +97,9 @@ EOF
93 97
 [Service]
94 98
 ExecStart=
95 99
 ExecStart=/usr/bin/dockerd --config-file=$docker_config_file
100
+
101
+[Service]
102
+Environment="HTTP_PROXY=$http_proxy" "HTTPS_PROXY=$https_proxy" "NO_PROXY=$no_proxy"
96 103
 EOF
97 104
     sudo systemctl daemon-reload
98 105
     sudo systemctl --no-block restart docker.service

Loading…
Cancel
Save