Skip to content

Commit 05072cb

Browse files
florindragosMarkW
authored and
MarkW
committed
Update readme - Using a proxy on windows (#337)
1 parent 8a896dd commit 05072cb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,23 @@ class { 'docker':
211211
}
212212
```
213213

214+
### Proxy on Windows
215+
To use docker through a proxy on Windows, a System Environment Variable HTTP_PROXY/HTTPS_PROXY must be set. See [Docker Engine on Windows](https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon#proxy-configuration)
216+
This can be done using a different puppet module such as the puppet-windows_env module. After setting the variable, the docker service must be restarted.
217+
```puppet
218+
windows_env { 'HTTP_PROXY'
219+
value => 'http://1.2.3.4:80',
220+
notify => Service['docker'],
221+
}
222+
windows_env { 'HTTPS_PROXY'
223+
value => 'http://1.2.3.4:80',
224+
notify => Service['docker'],
225+
}
226+
service { 'docker'
227+
ensure => 'running',
228+
}
229+
````
230+
214231
## Usage
215232
216233
### Images

0 commit comments

Comments
 (0)