Adding proxy wildcard documentation

Wildcard documentation was missing in the official docs
This commit is contained in:
ChaosGramer 2019-01-22 11:55:03 +01:00 committed by GitHub
parent 178b6ceb10
commit f3960c3d31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -109,6 +109,12 @@ you need to add this configuration in the Docker systemd service file.
[Service] [Service]
Environment="HTTPS_PROXY=https://proxy.example.com:443/" "NO_PROXY=localhost,127.0.0.1,docker-registry.somecorporation.com" Environment="HTTPS_PROXY=https://proxy.example.com:443/" "NO_PROXY=localhost,127.0.0.1,docker-registry.somecorporation.com"
``` ```
The NO_PROXY variable accepts wildcards. You just need to have a value starting with a dot:
```conf
[Service]
Environment="HTTPS_PROXY=https://proxy.example.com:443/" "NO_PROXY=localhost,127.0.0.1,.somecorporation.com"
```
4. Flush changes: 4. Flush changes: