Merge pull request #11701 from kfortner/patch-1

Update systemd.md
This commit is contained in:
David Karlsson 2022-11-28 10:03:00 +01:00 committed by GitHub
commit bc29f9c315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -111,6 +111,16 @@ you need to add this configuration in the Docker systemd service file.
Environment="HTTP_PROXY=http://proxy.example.com:80" Environment="HTTP_PROXY=http://proxy.example.com:80"
Environment="HTTPS_PROXY=https://proxy.example.com:443" Environment="HTTPS_PROXY=https://proxy.example.com:443"
``` ```
> **Note**
>
> Special characters in the proxy value, such as `#?!()[]{}`, must be double
> escaped using `%%`. For example:
>
> ```
> [Service]
> Environment="HTTP_PROXY=http://domain%%5Cuser:complex%%23pass@proxy.example.com:8080/"
> ```
3. If you have internal Docker registries that you need to contact without 3. If you have internal Docker registries that you need to contact without
proxying you can specify them via the `NO_PROXY` environment variable. proxying you can specify them via the `NO_PROXY` environment variable.
@ -187,6 +197,16 @@ you need to add this configuration in the Docker systemd service file.
Environment="HTTP_PROXY=http://proxy.example.com:80" Environment="HTTP_PROXY=http://proxy.example.com:80"
Environment="HTTPS_PROXY=https://proxy.example.com:443" Environment="HTTPS_PROXY=https://proxy.example.com:443"
``` ```
> **Note**
>
> Special characters in the proxy value, such as `#?!()[]{}`, must be double
> escaped using `%%`. For example:
>
> ```
> [Service]
> Environment="HTTP_PROXY=http://domain%%5Cuser:complex%%23pass@proxy.example.com:8080/"
> ```
3. If you have internal Docker registries that you need to contact without 3. If you have internal Docker registries that you need to contact without
proxying, you can specify them via the `NO_PROXY` environment variable. proxying, you can specify them via the `NO_PROXY` environment variable.